Android的工作室:安装失败,因为APK没有签名 [英] Android Studio: Installation failed since APK was not signed

查看:859
本文介绍了Android的工作室:安装失败,因为APK没有签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在模拟器中运行我的应用程序,并已收到以下错误:

I am attempting to run my app in an emulator and have been receiving the following error:

安装失败,因为APK要么没有签名,或签署不正确的。
  如果这是一个基于摇篮项目,然后确保签约配置在指定的摇篮构建脚本。

Installation failed since the APK was either not signed, or signed incorrectly. If this is a Gradle-based project, then make sure the signing configuration is specified in the Gradle build script.

我试图来运行调试设置,以便签署该应用程序不应该是必要的,因为这将给予在建设一个临时签名的应用程序。

I am attempting to run the app with a debug setting so signing the app should not be necessary as it will be given a temporary signature upon building.

推荐答案

这经常发生,当你安装一个不同的计算机上生成相同的应用程序。即使是未签名的apk有一个签名,让您的手机是困惑,为什么你要安装与在另一台计算机上生成相同的包名的东西。

This happens often when you install the same app generated on a different computer. Even the unsigned apk has a signature, so your phone is confused why you're trying to install something with the same package name that was generated on a different computer.

进入设置 - >应用程序,然后在列表中找到应用程序,并清除其数据和卸载它。

Go to your settings -> apps, then find the app in the list, and clear its data and uninstall it.

然后尝试重新安装。这会解决它。

Then try installing again. That'll fix it.

这篇关于Android的工作室:安装失败,因为APK没有签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆