如何使用Google上传密钥更新我的应用?

时间:2019-04-22 09:50:48

标签: android google-play

我已经在Google Play上上传了已签名的应用程序捆绑包并发布了它,但是今天我需要对我的应用程序进行更新,并且我做了它并制作了一个签名的apk,但是当尝试上传已发布的apk时,请给我一个错误:

You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint:
[ SHA1: 38:E0:E0:35:55:9E:40:F9:DE:C1:D2:EA:22:C2:3C:62:E4:CF:36:72 ]
and the certificate used to sign the APK you uploaded have fingerprint:
[ SHA1: 27:ED:31:FF:2B:B5:FD:21:62:67:C9:4A:2D:29:73:8A:A8:F3:AB:0B ]

我该怎么办?

2 个答案:

答案 0 :(得分:0)

您必须使用与首次生成签名的APK文件时生成的.JKS文件相同的文件。 然后提供跟随者。 1)密钥库密码 2)密钥别名 3)密钥密码

答案 1 :(得分:0)

您可以像这样打印用于签名apk的密钥:

keytool -list -printcert -jarfile app.apk

这将告诉您是否真的使用相同的密钥库/密钥进行签名。我怀疑您的过程出了点问题,即使您确定,您正在使用其他密钥库,或者在签名时出了点问题。