keytool -list -v -keystore D:\Projects\TheWallApplication\TheWall KeyStorepoint\TheWallKeystore.jks -alias key0
but getting :- Illegal option: KeyStorepoint\TheWallKeystore.jks keytool -list [OPTION]...
keytool -list -v -keystore D:\Projects\TheWallApplication\TheWall KeyStorepoint\TheWallKeystore.jks -alias key0
but getting :- Illegal option: KeyStorepoint\TheWallKeystore.jks keytool -list [OPTION]...
Easiest way for getting SHA1 Key in android studio both (Debug and release Mode)
Android Studio
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.
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.
3-Then Follow Above Procedure you will get SHA-1 for release mode.
In Android Studio of version 4.2 and greater, the above answer doesn't work. So for Android Studio 4.2, follow these steps given in this answer.
Link:- How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?