如何应对INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES不卸载 [英] How to deal with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES without uninstallation

查看:1552
本文介绍了如何应对INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES不卸载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图重新安装的APK

I tried to reinstall an apk

$adb install -r new.apk

和它显示了错误:

Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

一种解决办法是卸载和安装new.apk,工作正常。

One solution is to uninstall and install the new.apk, that works fine.

但我不知道我是否可以重新建立一个APK并重新安装不卸载。例如。更改一些配置在AndroidManifest.xml,还是不签的APK等。

But I'm wondering whether I could re-build an apk and re-install without the uninstallation. Eg. change some config in the AndroidManifest.xml, or not sign the APK, etc.

这将是巨大的AP preciated,如果你能告诉我的INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES的全部意义。

It would be great appreciated if you could tell me the whole meaning of the "INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES".

推荐答案

这意味着你的应用程序具有不同的签名密钥不是您的应用程序的旧副本被签署的新副本(在开发机器上)(安装在设备上/仿真器)。例如,如果这是一个设备,你可能已经把旧的副本从一个​​不同的发展(例如,一些其他的开发人员的计算机)机。或者,旧的与您的产品密钥签名,而新的与调试密钥签名。

It means the new copy of your application (on your development machine) was signed with a different signing key than the old copy of your application (installed on the device/emulator). For example, if this is a device, you might have put the old copy on from a different development machine (e.g., some other developer's machine). Or, the old one is signed with your production key and the new one is signed with your debug key.

这篇关于如何应对INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES不卸载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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