您的位置:首页 > 移动开发 > Android开发

Android 修改debug证书出现:Keystore was tampered with, or password was incorrect 问题解决

2015-06-09 13:36 531 查看
I have a custom keystore that I use for signing my apk. now I want to use the same keystore for debugging. when I go to eclipse->windows->preferences->android->build and set my custom key store I get "Keystore was tampered with, or password was incorrect"?

I had the same issue and here are the steps to properly create a custom keystore that can be used for debugging in Eclipse:

Basically what you should do is that change both
storepasswd
and
keypasswd
for
the alias
androiddebugkey
to
"android".

Here are the commands:
keytool -changealias -keystore mykeystore.keystore -alias [old alias] -destalias androiddebugkey
keytool -keypasswd -keystore mykeystore.keystore -alias androiddebugkey
keytool -storepasswd -keystore mykeystore.keystore


If you don't know your old alias, look it up using
keytool -list -v -keystore mykeystore.keystore


in Command prompt not able to enter the password
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: