上传失败,APK 有 2 个有效的证书条目 [英] Upload fail with APK with 2 certificates entries that are valid

查看:25
本文介绍了上传失败,APK 有 2 个有效的证书条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 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

这篇关于上传失败,APK 有 2 个有效的证书条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆