Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Got an error while run the command in terminal:
"keytool -list -v -alias androiddebugkey -keystore %USERPROFILE%.android\debug.keystore"
Results in below error:
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:663)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
at java.security.KeyStore.load(KeyStore.java:1445)
at sun.security.tools.keytool.Main.doCommands(Main.java:941)
at sun.security.tools.keytool.Main.run(Main.java:379)
at sun.security.tools.keytool.Main.main(Main.java:372)
P.S: I have seen similar questions regarding this error, but none of the solutions solved my problem.
Solved: After Running Flutter -v in android studioFound Out That:
Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
which indicated that there was difference with the java version installed (was currently using java 1.8).
I solved the problem by installing the same java version (In my case 11.0.12) and adding it to the PATH in environmental variables.
A simpler way would be to use Android Java, change "YOUR_USERNAME_HERE"
"c:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -list -v -keystore "C:\Users\YOUR_USERNAME_HERE\.android\debug.keystore"
Default password android
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.