安卓工作室 : Installation failed since APK was not signed

标签 android android-studio cryptography digital-signature

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

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.

我正在尝试使用调试设置运行应用程序,因此不需要签署应用程序,因为它会在构建时获得临时签名。

最佳答案

当您安装在不同计算机上生成的相同应用程序时,经常会发生这种情况。即使是未签名的 apk 也有签名,因此您的手机会混淆为什么您要尝试安装在另一台计算机上生成的具有相同包名的东西。

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

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

关于安卓工作室 : Installation failed since APK was not signed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28884929/

相关文章:

java - Android- HttpUrlConnection addRequestProperty 不起作用

node.js - 我如何使用 OAEP 对 RSACryptoServiceProvider (.net) 解密进行错误的 : SubtleCrypto (Node. js) 加密

c# - 从 int 到短字符串的 2 路加密

android - 如何在 Android 中以编程方式将 ScrollView 滚动到底部?

Android: fragment backStack

android - Google Navigation Drawer 无法在 map 上正确绘制

security - 对加密数据进行全文搜索

java - 将 Android 应用程序连接到远程数据

安卓工作室 3.4.1, Kotlin "unresolved reference: mutableListOf"

java - Android Studio, ListView ,java