Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate SHA1 Fingerprint in Android studio 2.2+

Today I have just upgraded my android studio from Studio 2.1 to Studio 2.2. I just check all android studio 2.2 Feature and it's a great experience to work in studio 2.2, but I'm facing one problem at now.

I know it's not a problem but it occurs just because of lack of my knowledge so I apologize for that. My problem is described as below.

Problem

In Android studio 2.1 using this you can easily generate SHA1. But at knowing this functionality will be change while I follow above link step then get following error.

Here No Debug SHA1 Finger Print will be displayed just like 2.1

If anyone has any idea to generate SHA1 in android studio 2.2 then please help.

I hope you are clear with my problem.Let me know if you want more information about my problem.

Any help will be appreciated.

Thanks in advance

like image 936
Chirag Solanki Avatar asked Sep 26 '16 08:09

Chirag Solanki


People also ask

How do I get SHA-1 signing certificate Android?

If you've published your app using Play App Signing, a requirement when using Android App Bundle, you can get your SHA-1 from the Google Play Console on the Release > Setup > App Integrity page.

What is SHA-1 certificate fingerprint?

SHA1, MD5, and SHA-256 are cryptographic functions that will convert your input to 160 bit (20 bytes) value. It is a secure key that is used to store very important data. In Android SHA1, MD5 and SA-256 keys are very important.


3 Answers

Try following this:How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?.

  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 from List (root))
  6. Click on Tasks
  7. Click on Android
  8. Double Click on signingReport (You will get SHA1 and MD5 in Run Bar)
  9. Then click this button: enter image description here

(top left of the error log)

p/s : Step 9 : You can find it in the log of Gradle Console

like image 161
Just_someone Avatar answered Oct 07 '22 09:10

Just_someone


1. Open Android Studio
2. Open Right Side Gradle (From Right Side Panel)
3. Select :app --> TASKS --> android-->signing report
4. Now at the bottom in the run window You have your SHA1, MD5 and SHA-256
like image 24
Jaswinder Singh Avatar answered Oct 07 '22 11:10

Jaswinder Singh


CLick on Gradle in right side of your project in Android Studio Now you see Gradle Project properties is opened. Now go through Click on app-->Task-->android In android folder you see there three options 1-androidDependencies, 2-signingReport, 3-sourceSet Double click on signingReport and see signingReport of your project at bottom. Hope you got SHA1 key.

like image 6
Ness Tyagi Avatar answered Oct 07 '22 11:10

Ness Tyagi