应用多个证书拒绝签名的应用

时间:2015-12-27 22:33:13

标签: android apk sha1 jarsigner

我正在尝试在Google Play上升级我的应用(使用appinventor 1.0开发)。我正在使用相同的密钥库,但我收到以下消息(抱歉无知,不确定是否重要但为了安全性我在SHA1之后更改了下面的一些密钥:):

Upload failed
Your APK has been signed with multiple certificates. Please only sign it with one certificate and upload it again.
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: A6:D5:E5:66:34:84:B5:31:8E:8F:79:D7:2A:38:B1:54:5E:29:27:22 ]

and the certificate(s) used to sign the APK you uploaded have fingerprint(s):

[ SHA1: A6:D5:E5:66:34:84:B5:31:8E:8F:79:D7:2A:38:B1:54:5E:29:27:22,
SHA1: 0D:28:AC:88:7C:D8:FD:0C:BA:A7:46:BC:70:7E:EA:37:9F:A1:CC:84 ]

之后我正在使用jarsigner和zipalign。 SHA1的第一部分完全复制,但逗号后面还有一个额外的SHA1。

有任何线索吗?

2 个答案:

答案 0 :(得分:0)

可能您使用的是同一个密钥库,但不是同一个证书。要更新应用程序,您需要使用与提交应用程序完全相同的配置(密钥库和证书)。

答案 1 :(得分:0)

我的猜测是你的apk中还有另一个签名。 将.apk文件重命名为.zip并删除任何存在的签名。然后重命名并做jarsign和zipalign。