Generate SHA1 and MD5 keys in Android studio
Cause every time i forget that freaking terminal command to generate it.
This will be a short post just for solving a simple problem, every time when i integrated google sign in or firebase, It needs SHA1 key to be added compulsory. Every time i forget that command line code to generate it,
keytool -list -v -keystore c:\users\James\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
Above is code that will generate SHA1 from terminal, but Android studio also provides the same feature without writing a single line of code, Let’s see it,
STEP 1: Select the app module in left panel and click on gradle section at right side, You will see 2 sections root(project level) and app.
STEP 2: Select app module then go to Tasks → android → signingReport, double click on it and you will see in bottom, it will take a minute to generate a key
STEP 3: Get your key:
Sometime after clicking signinReport you will not see keys directly as Run console is not opened, you have to click toggle task execution mode highlighted in below picture:
So use Android studio to generate SHA1 and forget command prompt.