如何在不卸载的情况下处理 INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES? [英] How to deal with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES without uninstall?

查看:29
本文介绍了如何在不卸载的情况下处理 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.

如果您能告诉我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天全站免登陆