Get SHA1 from Android Studio
SHA1 certificate fingerprint is required for Firebase features, Google API features like maps, google sign-in etc.
As of Android Studio 2.2, SHA-1 fingerprint can be obtained from inside the IDE itself. The most common way developers use to find the fingerprint is shooting up the console/terminal/cmd prompt and using the keytool command. Here’s an example for that:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
This way of finding the SHA-1 is pretty old now, as a developer you always want things like these to be on on fingertips. Now I will show you a better and faster way to get SHA-1 fingerprint.
Step 1. Open your project in Android Studio.
Step 2. Click on Gradle Menu on the right side and expand it.
Step 3. Click on android and then signing report.
(Follow the numbers on image)
Magic happens here:
After clicking on the Run command, go to the Run Tab at the bottom.
Click on the first icon on the left as shown.
BAZINGA! You got your SHA-1 fingerprint.
Come on now, clap it up!