Home > Back-end >  Missing keystore - Can't get SHA1
Missing keystore - Can't get SHA1

Time:05-05

I try to get SHA1 to use for Firebase but I can't get SHA1

In JavaVirtualMachines I using jdk1.8.0_202.jdk

  1. I tried get in gradle -> Task -> Android -> signingReport

=> Error: Missing keystore

  1. I tried get on command line -> keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v

=> Error:

keytool error: java.lang.Exception: Keystore file does not exist: /Users/bobhope/.android/debug.keystore
java.lang.Exception: Keystore file does not exist: /Users/bobhope/.android/debug.keystore
    at sun.security.tools.keytool.Main.doCommands(Main.java:786)
    at sun.security.tools.keytool.Main.run(Main.java:382)
    at sun.security.tools.keytool.Main.main(Main.java:375)

CodePudding user response:

you missed the path in your command

keytool -list -v -alias androiddebugkey -keystore%USERPROFILE%\.android\debug.keystore

after the keystore you should add the path like C:\Users\Username\Downloads

CodePudding user response:

Use complete path

Mac:

keytool -list -v -keystore /Users/username/.android/debug.keystore
-alias androiddebugkey -storepass android -keypass android

Linux:

keytool -list -v -keystore /home/username/.android/debug.keystore
-alias androiddebugkey -storepass android -keypass android

Windows:

keytool -list -v -keystore C:\Users\username\.android\debug.keystore
-alias androiddebugkey -storepass android -keypass android
  • Related