Missing keystore in Flutter

1,399

Solution 1

You can follow these steps:

Create a file named /android/key.properties that contains a reference to your keystore:



storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=<location of the key store file, such as /Users/<user name>/key.jks>

Solution 2

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

Solution 3

Had the same issue. Cleanest fix I found is to generate a debug key:

keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"

gradlew signinReport will work after that.

Source

Share:
1,399
EDMGL
Author by

EDMGL

Updated on December 24, 2022

Comments

  • EDMGL
    EDMGL over 1 year

    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?