Android Play商店证书失败

时间:2016-09-06 00:42:44

标签: android ionic-framework google-play

我正在尝试从我的第二台计算机上传APK,但它失败并显示以下错误。我从Comp复制了发布密钥。 1到Comp。 2并运行相同的构建脚本。但它失败了吗?我打赌我错过了一些非常简单的事情......

Title

我正在开发离子生成btw。

编辑: 这是我在两台机器上签名的方式,密钥库文件是相同的。 这是我应该改变的其他事情吗?

You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are signed with the certificate(s) with fingerprint(s):
[ SHA1: a:hex:key ]
and the certificate(s) used to sign the APK you uploaded have fingerprint(s):
[ SHA1: other:hex:key]

1 个答案:

答案 0 :(得分:0)

生成已签名的APK时,您需要确保为每个应用使用相同的密钥库文件。

这里发生的事情是你使用不同的密钥库文件生成你的APK然后你使用以前版本的应用程序,所以你得到一个错误。

如果您想知道,您的密钥库必须相同的原因是证明它来自同一个人并且是真实的"。来自developer docs for Signing Your App的摘录可能有所帮助:

  

签署APK时,签名工具会将公钥证书附加到APK。公钥证书用作"指纹"唯一地将APK与您和您相应的私钥相关联。这有助于Android确保您APK的任何未来更新可靠且来自原始作者

...此外

  

您必须在应用的整个生命周期内使用相同证书,以便用户能够安装新版本作为应用的更新。