info@androidpaper.co.in

How to get SHA1 in Android Studio?

To obtain the SHA-1 fingerprint for your Android app in Android Studio, you can use the following steps:

Open your Android Studio project. In the right menu, select "Gradle" and then click on "Execute Gradle Task" Popup with a list that appears, Once you will get, run the following command:

'signingreport'

This command will execute a Gradle task and display a list of signing reports for each variant of your app. Look for the "debug" variant in the output. Under the "debug" variant, you will find the SHA-1 fingerprint, along with other information about the debug signing certificate. The SHA-1 fingerprint will be listed in the "SHA1" section. Here's an example of what the SHA-1 fingerprint might look like:

Variant: debug
Config: debug
Store: C:\Users\YourUsername\.android\debug.keystore
Alias: AndroidDebugKey
MD5: AA:BB:CC:DD:EE:FF:GG:HH:II:JJ:KK:LL:MM:NN:OO:PP
SHA1: 11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:GG:HH:II:JJ:KK
SHA-256: XX:YY:ZZ:AA:BB:CC:DD:EE:FF:GG:HH:II:JJ:KK:LL:MM:NN:OO:PP:QQ:RR:SS:TT:UU:VV:WW:XX:YY:ZZ:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE
Valid until: Monday, January 01, 2040

Please note that the actual SHA-1 fingerprint in your case will be different, and it is a unique identifier for your app's signing certificate. The debug signing certificate is automatically generated by Android Studio when you build your app in debug mode. For release builds, you will use a different keystore and signing configuration.