在试用了几个月IntelliJ的Android插件后,我最近又转到Android工作室。
我再次检查了一遍,我确信我使用的密钥库(和相同的密钥)与以前相同。
现在我有两种可能:
我的密钥库密码是错误的。但是,为什么它能成功地建造APK呢?
它在Google帮助上读到,如果keystore丢失了(情况并非如此,但密码可能是),则需要在Play Store上用新的包名重新创建一个全新的应用程序。
真的没有别的选择了吗?
编辑
我从商店得到的错误消息是:
You uploaded an APK that is not signed with the upload certificate.
You must use the same certificate. The upload certificate has fingerprint:
[ SHA1: XXX ]
and the certificate used to sign the APK you uploaded have
fingerprint:
[ SHA1: YYY ]
但是,当我运行以下命令时:
keytool -list -v -keystore "/Path/upload_keystore.jks"
-alias "upload_key" -storepass ***** -keypass ****
我知道SHA1实际上是
XXX公司
(而不是
).
所以应该是对的。
另外,奇怪的是:无论我使用什么密码,我都得到相同的SHA1,而且它是正确的!
Warning:
The JKS keystore uses a proprietary format. It is recommended to
migrate to PKCS12 which is an industry standard format using "keytool
-importkeystore -srckeystore /Path/upload_keystore.jks -
destkeystore /Path/upload_keystore.jks -deststoretype pkcs12".
这是奇怪的,因为它是由谷歌生成的。