简体   繁体   English

未签名APK

[英]APK signed not installed

我使用android studio和SDK 23创建了一个APK,当我在调试模式下构建时,它可以顺利地安装在移动设备上并完美运行,但是当在发布模式下进行签名和编译时,会在移动设备上启动安装过程,但最后我留下了消息“未安装应用程序”。

It's probably due to difference in sign certyficates. 这可能是由于签名证书不同所致。 Your debug apk is signed with developer certyficate and your release apk with different one. 您的调试apk使用开发人员certyficate签名,而您的发布apk使用不同的签名。

Solution uninstal the debug apk befor instaling the release one. 解决方案在安装发行版一之前取消安装调试apk。 There won't be any signing conflicts after that and the instalation should instal as smoth as the debug apk. 此后将不会有任何签名冲突,并且安装应与调试apk一样平稳。

This is actually a thing that android does not install outdated APK files. 这实际上是android不会安装过时的APK文件的事情。 For example when you create two signed APK's. 例如,当您创建两个签名的APK。 One has the version 0.8 and one is 1.0 it won't install the 0.8 one when the 1.0 one is installed. 一个版本为 0.8,一个版本为1.0,安装1.0 版本后不会安装0.8版本。

So apparently the debug version is considered a better version of the app so Android won't install. 因此,显然,调试版本被认为是该应用程序的更好版本,因此不会安装Android。

As Karol said the Solution is to simply uninstall the app and then install the signed apk. 正如Karol所说, 解决方案是简单地卸载应用程序,然后安装签名的apk。

EDIT : I now looked at handike's possible duplicate and it is basically saying what I said. 编辑 :我现在查看了handike的可能重复项,它基本上是在说我所说的话。

谢谢,我卸载了未签名的应用程序,然后卸载了新的(签名的)应用程序,并且运行良好

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM