Android的版本密钥库的问题:"密钥库被篡改,或密码不正确" [英] Android release keystore issue: "Keystore was tampered with, or password was incorrect"

查看:324
本文介绍了Android的版本密钥库的问题:"密钥库被篡改,或密码不正确"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我产生我使用这个命令的android版本的密钥库:

A couple of months ago I generated my android release keystore with this command:

keytool -genkey -v -keystore my-release-key.keystore -alias myalias -keyalg RSA -keysize 2048 -validity 10000

我输入的密钥库密码,并把它写下来,在最后一步,当它是时间进入证书我$ P $密码pssed输入要使用相同的密码密钥库(让我不得不记住一个密码的全过程)。

I entered a password for the keystore and wrote it down, in the last step, when it was time to enter a password for the certificate I pressed enter to use the same password as the keystore (so I had to remember only one password for the whole process).

生成此密钥库我签我的apk使用此命令发布后:

After generating this keystore I signed my apk for release using this command:

jarsigner -verbose -keystore my-release-key.keystore my.apk myalias

在这里我输入我的密码(没问题)。

where I entered my password (no problem).

现在我有一个更新推送到我的APK在市场上,当我尝试使用上述命令,我得到一个密钥库被篡改,或密码不正确签署新的APK。

Now I have to push an update to my apk in the market and when I try to sign the new apk using the command above I get a "Keystore was tampered with, or password was incorrect".

我很纳闷,我回到我的密钥库的备份,我也得到了同样的问题。我敢肯定的密码是否正确。请注意,我没有使用Eclipse在所有的过程(我在命令行签约)。

I'm puzzled, I went back to my keystore backup and I get the same problem. I'm sure the password is correct. Note that I'm not using Eclipse at all for the process (I'm signing from the command line).

可能是什么问题就在这里? Heeelppp !!

What could be the problem here? Heeelppp!!

推荐答案

与我发生这个错误,因为我在我的公司名称逗号,比如公司,公司 删除逗号和一切工作正常。 希望有所帮助。

This error occurred with me because I had a comma in my Company name, for instance "Company, Inc." Removed the comma and everything worked ok. Hope that helps.

这篇关于Android的版本密钥库的问题:"密钥库被篡改,或密码不正确"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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