应用程序更新失败 - 不一致的证书(..但不是真的) [英] Application Update Fails - Inconsistent Certificates (..but not really)

查看:141
本文介绍了应用程序更新失败 - 不一致的证书(..但不是真的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经出版了我的应用程序5次更新没有任何问题。现在,尝试安装的更新测试目的时,安装失败。通过定期的Andr​​oid包安装程序出现错误未安装应用程序。

I have already published 5 updates for my application without any problems. Now, when trying to install an update for testing purposes the installation fails. Through the regular Android package installer I get the error "Application not installed."

当试图通过亚行安装应用程序,我得到的错误:
[INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

When trying to install the application through adb I get the error: [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

我知道一个事实,即该证书是我用过之前签署的应用程序相同。

I know for a fact that the certificate is the same one I've used to sign the app before.

我也曾在清单文件递增和的versionName版本code相应。

I have also incremented the versionName and versionCode accordingly in the Manifest file.

自从我上次更新已经更改的唯一的事情就是我的硬盘crapped出在我身上,这导致重新安装Eclipse,ADT,Android SDK中,和Java。我基本上到崩溃后重新建立整个开发环境。

The only thing that has changed since my last update is that my hard drive crapped-out on me, which led to re-installing eclipse, ADT, Android SDK, and Java. I basically had to set up the entire development environment again after the crash.

一切,包括我的所有项目文件,进行备份。我可以建立我的应用程序就好了。

Everything, including all of my project files, were backed-up. I can build my application just fine.

安装工作,如果我先卸载previous版本,但是这是我目前已经发布的应用的更新。我不能要求用户卸载他们目前正在使用采取更新任何版本。这听起来很愚蠢的。

Installation works if I uninstall the previous version first, but this is an update for an app that I currently have published. I can't ask the users to uninstall whatever version they currently are using to take an update. That sounds silly.

任何意见将是有益的。

推荐答案

我想你需要双重确认是否使用相同的证书与否,因为我们遇到了相同的情况下很多很多倍,根本原因都是一样的:证书变更。

I think you need double confirm whether you use the same certificate or not since we ran into the same scenarios many many times and the root causes are always the same: the certificate changes.

您可以简单地解压缩.apk文件,因为它只是一个普通的ZIP包,然后找到该文件 META-INF / CERT.RSA 。在CERT.RSA不应该在所有的apk文件进行更改。确认,decrpt它如下:

you could simply unzip the .apk file since it is just a regular ZIP package and then locate the file META-INF/CERT.RSA. the CERT.RSA should NOT be changed in all your .APK files. to confirm, decrpt it as following:

openssl pkcs7 -inform des -in CERT.RSA -out decrypted.txt -print_certs -text

,你可以简单的.txt文件运行差异

这篇关于应用程序更新失败 - 不一致的证书(..但不是真的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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