How to obtain SHA1 Keys for debug and release – Android Studio [Mac]

Debug Key

Click on the Gradle tab on the right hand side of the Android Studio window.

Go to the Project root folder -> Tasks -> android -> signingReport

UPDATE: (Newer versions) In case you don’t find an android folder here, go to :app instead of root, navigate to Tasks>android and you’ll find signingReport.

Double click on signingReport, this will build with the signingReport and post the SHA1 in the bottom view.



Method 1

In Android Studio, go to Build menu -> Generate Signed Bundle / APK

Select your keystore and key alias.

Copy the key store path and the key alias.

Here, the path is /Users/technofreek/Documents/testkeystore

and the alias is key0.

Open terminal and type the command

keytool -list -v -keystore <your keystore path> -alias <your alias>

For this example, here’s the command

keytool -list -v -keystore /Users/technofreek/Documents/testkeystore -alias key0

This will print your SHA1

Method 2

If you have enabled App Signing for your app in your Google Play Developer Console, by uploading your signing certificate, then just go to your developer console and select your app.

Select Release Management -> App Signing, and you’ll see you release SHA1.


Also published on Medium.

By |2019-11-05T15:31:49+00:00April 10th, 2019|Categories: Android Tutorials|Tags: , |3 Comments


  1. Ugas Fuad Ugas Afi October 2, 2019 at 6:09 pm - Reply

    Thanks you helped me

  2. David October 16, 2019 at 9:03 pm - Reply

    Thank you for the post…

    …but I am stymied from the get-go: under my root (what would be the NotesApp (root) folder in your example, the Tasks folder does not contain an Android subfolder, and hence no signingReport.

    What’s more, other helpful videos mention a refresh icon on the gradle bar…not only is there no refresh button, but I cannot find in any menu such a feature.

    The bottom line is that I cannot find the SHA1 for my app.

    Any thoughts?

    • Zeba Rahman November 5, 2019 at 3:27 pm - Reply

      Hello. In this case, Instead of the root folder, check the “:app” folder; you should find the signingReport there.
      YourAppName –> :app –> Tasks –> android –> signingReport
      Let me know if it helped. Thank you for pointing it out. I have updated the article with this info.

Leave A Comment