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

This is the instructions from Google "Firebase in a weekend". However this is not working. I have tried to add my JRE to the path variable and have done ample research but I keep getting this error...

C:\>-alias androiddebugkey -keystore %CONNERGESBOCKER%\.android\debug.keystore '-alias' is not recognized as an internal or external command, operable program or batch file. 

thanks!

1

3 Answers 3

4

It's splitting it into two lines incorrectly.

Change the command to be a single line:

keytool -exportcert -list -v -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore 
Sign up to request clarification or add additional context in comments.

1 Comment

As a side note, to run it as 2 lines use the caret key (^) stackoverflow.com/a/69079/833647
0

I found a easy way to get SHA-1

go to Gradle menu on right side of screen then Task->android->SigningReport . double click it. after its complete you will see SHA-1 in the "Run" menu at botton(Scroll up to see it).

Comments

0

If you are using android studio use simple step

  1. Run your project
  2. Click on Gradle menu
  3. Expand Gradle task tree
  4. Click on android-> signingReport and see the magic
  5. It will tell you everything

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.