Tuesday, March 7, 2017

How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?

Easiest ways ever:

Update added for Android Studio V 2.2 in last step

There are two ways to do this.
1. Faster way:
  1. Open Android Studio
  2. Open your Project
  3. Click on Gradle (From Right Side Panel, you will see Gradle Bar)
  4. Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)
  5. Click on Your Project (Your Project Name form List (root))
  6. Click on Tasks
  7. Click on Android
  8. Double Click on signingReport (You will get SHA1 and MD5 in Run Bar)
Check the screenshot below:
Enter image description here

Android Studio V 2.2 Update

There is an issue with Execution.
Solution:
  • Click on Toggle tasks execution/text mode from Run bar
Check Screenshot below:
enter image description here
Done.