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

来源:互联网 发布:韩国电影《招待》 知乎 编辑:程序博客网 时间:2024/05/21 14:46

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 androiddebugkeykeytool -keypasswd -keystore mykeystore.keystore -alias androiddebugkeykeytool -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


0 0
原创粉丝点击