Is the method for getting a SHA-1 fingerprint the same as the method of getting the a fingerprint? Previously, I was running this command:
It's not clear to me if the result I'm getting is the SHA-1 fingerprint. Can somebody clarify this?
Is the method for getting a SHA-1 fingerprint the same as the method of getting the a fingerprint? Previously, I was running this command:
It's not clear to me if the result I'm getting is the SHA-1 fingerprint. Can somebody clarify this?
Follow this tutorial for creating SHA1 fingerprint for Google Map v2
For Debug mode:
for Release mode:
example:
If you are using android studio use simple step
Tasks
treeandroid
->signingReport
and see the magicResult Under Run Tab If Android Studio < 2.2
From android studio 2.2
Result will be available under Run console but use highlighted toggle button
Or
Second Way is
Create new project in android studio New -> Google Maps Activity
then open google_maps_api.xml xml file as shown in pics you will see your SHA key
For local you get easily sha1 from android studio but for live please check below url :
Facebook Android Generate Key Hash
We mostly not done below steps so please check the link which is 100% correct.
9) Now either you can restart command prompt or work with existing command prompt
10) get back to C drive and give the path of openssl Bin folder
11) copy the following code and paste
12) you will get debug_sha.txt in openssl bin folder
13) Again copy following code and paste
14) you will get debug_base64.txt in openssl bin folder
15) open debug_base64.txt file Here is your Key hash.
Using Google Play app signing feature & Google APIs integration in your app?
If you use Google Play app signing, Google re-signs your app. Thats how your signing-certificate fingerprint is given by Google Play App Signing as shown below:
Read more How to get Release SHA-1 (Signing-certificate fingerprint) if using 'Google Play app signing'
This is step by step process of what worked for me.
First run the app then follow steps below (also shown in screenshot)
Easiest way for getting SHA1 Key in android studio both (Debug and release Mode)
Android Studio
signingReport
(You will getSHA1
andMD5
in Run Bar)If you are using new Android Studio it shows time to execute on top there is Toggle task execution mode click on that you will get you SHA-1 key. Check 2nd and 3rd reference images.
Generate SHA-1 for Release Mode
1-First add keystore config in your gradle How to add config in gradle.
2-After Adding Config in gradle change build variant.
3-Then Follow Above Procedure you will get SHA-1 for release mode.
4-Check Image.