2016-04-28 49 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