Search This Blog

2018/03/10

Android: Keystore was tampered with, or password was incorrect

$keytool -list -v -keystore /Users/randinblogger/.android/debug.keystore
*Replace randinblogger with user name

Error Log:
keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:772)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:55)
        at java.security.KeyStore.load(KeyStore.java:1445)
        at sun.security.tools.keytool.Main.doCommands(Main.java:889)
        at sun.security.tools.keytool.Main.run(Main.java:340)
        at sun.security.tools.keytool.Main.main(Main.java:333)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:770)
        ... 5 more

Solution:
For the debug.keystore, the password is android. For Eclipse, the debug keystore is typically located at ~/.android/debug.keystore

No comments :

Post a Comment