Skip to content

Instantly share code, notes, and snippets.

@cbedroid
Last active May 3, 2024 10:57
Show Gist options
  • Save cbedroid/277099b9ff2875108d34d03b76b089f6 to your computer and use it in GitHub Desktop.
Save cbedroid/277099b9ff2875108d34d03b76b089f6 to your computer and use it in GitHub Desktop.
React-Native Generating SigningReport (Error: Missing keystore)

Fix Firebase Missing Keystore for React Native App

Generate new keystore certificate

For more info, visit https://rnfirebase.io/

 # Open your terminal 
 # Enter the following to generate your missing key. (if fails, try elevating your privileges with `sudo`).
 
  keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"

# Navigate to your `android` directory inside your React Native app, and re-run `./gradlew signingReport`
  
  cd <your-project-name>/android/
  ./gradlew signingReport

Hope this help you out! 😃 Happy coding!

@ZakirBangash
Copy link

Thank you it worked for me

@cbedroid
Copy link
Author

cbedroid commented Nov 4, 2022

Nice 👍, Happy to help! 😃

@TinOrion
Copy link

TinOrion commented Nov 8, 2022

It's worked for me! Thank you

@geek-Trivedh
Copy link

It worked, Thank you

@xcabsx
Copy link

xcabsx commented Jan 6, 2023

It worked, Thank you

@jbarn9
Copy link

jbarn9 commented Jan 10, 2023

Thank you I've spend one hour on this sh***

@ivanqvdoliveira
Copy link

Man! save the day! ty!

@TomasAranda21
Copy link

thanks you!!!

@gcrozariol
Copy link

Worked like a charm!

@PrimeTheFirst
Copy link

keytool error: java.lang.Exception: The -keyalg option must be specified.
java.lang.Exception: The -keyalg option must be specified.
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1177)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:419)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:412)

@PatricioVargasR
Copy link

keytool error: java.lang.Exception: The -keyalg option must be specified.
java.lang.Exception: The -keyalg option must be specified.
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1177)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:419)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:412)

This error means you need to add the algorithm to generate the key, I use RSA and this works for me: keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname " CN =Android debugging,O=Android,C=US" -keyalg RSA

@sivapiriyanL
Copy link

It worked, Thank you

@RakeebBaig1
Copy link

keytool error: java.lang.Exception: The -keyalg option must be specified.
java.lang.Exception: The -keyalg option must be specified.
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1177)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:419)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:412)

This error means you need to add the algorithm to generate the key, I use RSA and this works for me: keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname " CN =Android debugging,O=Android,C=US" -keyalg RSA

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment