SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC , How to generate SHA1 Release Keys in Mac?
DEBUG:
Click on the Gradle tab on the right hand side of the view.
Go to the ROOT folder -> Tasks -> android -> signingReport
Double click, this will build with the signingReport and post in your bottom view your SHA1.
RELEASE:
In android studio. Build -> Generate Signed APK... and click Next
Copy your key store path and key alias.
Traverse to the "bin" folder of the jdk path present in Java.
Open terminal and enter:
keytool -list -v -keystore "key store path" -alias "key alias"
Enter your key password and this will print out your release SHA1.
UPDATE:
In the new Google Developer console, it can be found at Setup -> App Integrity.
OLD ANSWER:
Here is the new easiest way to find release SHA-1 or other certificates:
I assume that you have already built signed APK and uploaded it to developer console.Open google play console. Go to "Version Management", go to "Application Signing" and see your certificates.
Note: First google will ask you to activate "Application Signing" for your application.
The entire process of generating certificate fingerprints SHA-1, SHA-256, MD5 for DEBUG as well as RELEASE are divided into the following 3 steps,
- Create keystore properties
- Load keystore To Gradle
- Execute Gradle Task
For genertaing SHA-1 key for release build variant, you have to addsigningConfigs for release in your main module's build.gradle file.