flutterkeystorekeytool

Missing keystore in Flutter


I want to get the SHA-1 code, but I encountered an error.

C:\Users\erdem\AndroidStudioProjects\flutter_app\android>gradlew signinReport

Missing Keystore

how can I solve this problem?


Solution

  • I was trying to get the SHA1 but I couldn't get because of the missing keystore error, I tried that and it worked for me I don't know if it really works.

    If you have your own jks file and did lead it with key.properties but still gives the error Missing Keystore that worked for me :

    1. Type keytool -alias "AndroidDebugKey" -genkeypair in the terminal of your android studio give it a password of android.
    2. The rest of the fields or questions asked after that don't matter so just press Enter.
    3. Go to your home directory (C:\Users) and look for a file named as .keystore.
    4. Rename .keystore to debug.keystore.
    5. Now copy and paste it to (C:\Users.android).
    6. Re-run the signReport task to generate a new key for APP.

    source: https://stackoverflow.com/a/63064024/7767761