AndroidDebugKey Keystore was tampered with, or password was incorrect [duplicate]

拟墨画扇 提交于 2019-11-27 01:22:57

问题


Whenever I enter in the terminal:

keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android

It asks me for a password. I've never set a password before. I've read somewhere else to put in "android" but I still receive the following error:

keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

Also I am new to the Mac environment. Whenever I type in the password the cursor does not move. I'm not sure if this is default Mac behavior for concealing passwords or if the password is just not registering so that's why I get the error. Any help is appreciated.


回答1:


This command works for me:

keytool -list -keystore ~/.android/debug.keystore

And the password is android. It will list your aliases and you can copy and paste as you please. I guess you're using it for debugging the maps.




回答2:


This was also a problem for me, but it wasn't the command that was the problem, it was that I was entering my user password and not the android password which is "android" at the prompt.



来源:https://stackoverflow.com/questions/5771210/androiddebugkey-keystore-was-tampered-with-or-password-was-incorrect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!