0

keytool -list -v -keystore D:\Projects\TheWallApplication\TheWall KeyStorepoint\TheWallKeystore.jks -alias key0

but getting :- Illegal option: KeyStorepoint\TheWallKeystore.jks keytool -list [OPTION]...

Doug Stevenson
  • 236,239
  • 27
  • 275
  • 302

1 Answers1

0

Easiest way for getting SHA1 Key in android studio both (Debug and release Mode)

  1. Open Android Studio
  2. Open Your Project
  3. Click on Gradle (From Right Side Panel, you will see Gradle Bar)
  4. Click on Refresh (Click on Refresh from Gradle Bar , you will see List Gradle scripts of your Project)
  5. Click on Your Project (Your Project Name form List)
  6. Click on Tasks/Android
  7. Double Click on signingReport (You will get SHA1 and MD5 in Run Bar)

If you are using new Android Studio it shows time to execute on top there is Toggle task execution mode click on that you will get you SHA-1 key. Check 2nd and 3rd reference images.

Check image for details enter image description hereenter image description here

Generate SHA-1 for Release Mode

1-First add keystore config in your gradle How to add config in gradle.

2-After Adding Config in gradle change build variant. enter image description here

3-Then Follow Above Procedure you will get SHA-1 for release mode.

4-Check Image. enter image description here

ref: https://stackoverflow.com/a/35308827/13564911

Ilyasse Salama
  • 248
  • 2
  • 12