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:

Android Studio

After clicking on the Run command, go to the Run Tab at the bottom.

Click on the first icon on the left as shown.

Run Tab

BAZINGA! You got your SHA-1 fingerprint.

Come on now, clap it up!




Stories, insights and more. From Operators and Investors in the Indian startup ecosystem. Want to contribute? Tell us!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Gopal Yadav

Gopal Yadav

Android Developer | Project Manager

More from Medium

Hello World! With Android Studio

Android Studio KeyBoard Shortcuts

Android Glide — An image loading and caching library for Android focused on smooth scrolling

Android Fundamentals : Content Provider