带有2个有效证书条目的APK上载失败 [英] Upload fail with APK with 2 certificates entries that are valid
问题描述
我正在尝试在Google Developer中更新我的应用,但收到错误消息:
I am trying to update my app in Google Developer, but receive the error:
>Upload failed
>
>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: AF:AF:68:1E:2B:5C:99:23:4D:B9:87:F6:D6:2F:9D:5A:9A:BE:34:EC ]
>
>and the certificate(s) used to sign the APK you uploaded have >fingerprint(s):
>
>[ SHA1:2A:84:1D:BC:91:68:55:B1:F3:90:47:FB:3B:56:29:21:F2:38:4A:37 ]
但是,使用keytool,密钥库文件包含2个条目,这两个证书.
However, using keytool, the keystore file contains 2 entries, both of these certificates.
除密钥库中的有效条目外,如何使开发人员进入?
How do I get Developer to except the valid entry in keystore?
推荐答案
我发现了解决方案.我有两个条目,因为有时我拼错了别名,它在密钥库文件中产生了一个新条目.
I discovered the solution. I had two entries because I misspelled my alias at sometime and it produced a new entry in the keystore file.
我使用keytool实用工具列出了密钥库的内容并删除了错误的别名.
I used the keytool utility to list the contents of the keystore and to delete the wrong alias.
keytool -list -v -keystore-列出内容 keytool -delete -alias" -keystore
keytool -list -v -keystore -- to list contents keytool -delete -alias "" -keystore
这篇关于带有2个有效证书条目的APK上载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!