Reputation: 1277
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.
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
Upvotes: 31
Views: 36379
Reputation: 91
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
Upvotes: 9
Reputation: 1293
Try following this:How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?.
(top left of the error log)
p/s : Step 9 : You can find it in the log of Gradle Console
Upvotes: 106
Reputation: 107
There is one easy way, just create a MapsActivity from new Activity menu. In newly created google_maps_api.xml sha1 is written there.
Upvotes: 0
Reputation: 2028
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.
Upvotes: 6