无法恢复密钥 [英] Cannot recover key

查看:470
本文介绍了无法恢复密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两天前,我在Play商店发布了我的应用程序的第一个版本。我使用了一个已知别名和密码的密钥。

I published the first version of my app in Play Store two days ago. I used a key with a known alias and password.

然后,我在eclipse中更改了我的应用程序的名称,只是更改了一个字母。现在,我想在eclipse中导出版本2,尝试从第一次使用该键,并输入别名和passwort。我确定它们是正确的!

Then, I changed the name of my app in eclipse, just changed one letter. Now, I want to export version 2 in eclipse, try use the key from the first time and enter alias and passwort. I´m sure they are correct!!

在最后一步,Eclipse告诉我无法恢复密钥。我尝试了一个新的,但是Play商店显示错误。我可以做什么?

On the last step, Eclipse tells me "Cannot recover key". I tried it with a new one but then the Play Store shows an error. What can I do??

编辑:

像你在第二张图片中看到的,它必须是正确的密码,否则别名会不在下拉框中。第二个密码也是正确的,它是第一个的副本。我只有一个别名!

Like you see in the second image abobe, it MUST be the right password because otherwise the alias would not be in the dropdownbox. Also the second password is correct, it´s a copy from the first. I only have one alias!

最后一张图片中的目的地APK文件链接不正确?

Destination APK file-link in the last picture doesn´t matter right?

推荐答案

解决方案:KeyStore密码和密钥密码应该相同。

使用keytool更改两个密码

Changing both passwords using keytool

更改密钥存储密码

keytool -storepasswd -new %newpassword% -keystore %YourKeyStore%.jks

将%newpassword%替换为您的实际密码,与YourKeyStore相同

更改别名密码

keytool -keypasswd -alias %MyKeyAlias% -new %newpassword% -keystore KeyStore.jks

注意:提供密钥库和别名时,请提供旧密码

Note: supply old passwords for both keystore and alias when asked for them

(引自

(quoted from http://karim-ouda.blogspot.com/2010/07/errors-solutions-5.html)

这篇关于无法恢复密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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