2016-04-28 27 views
0

我试图更新我在谷歌开发者的应用程序,但收到错误消息:上传失败,APK 2级证书的条目是有效

>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 ] 

然而,使用密钥工具,密钥库文件包含2项,既这些证书。

除了密钥库中的有效条目,我如何获得Developer?

回答

0

我发现了解决方案。我有两个条目,因为我在某个时候拼错了别名,并在密钥库文件中生成了一个新条目。

我使用keytool实用程序来列出密钥库的内容并删除错误的别名。

的keytool -list -v -keystore - 列出内容 的keytool -delete -alias “” -keystore