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?
from a Debug Keystore we can get the SHA1 value in
Eclipse
. Accessing from the menu:Window
->Preferences
->Android
->Build
but it doesn´t work for a production
Keystore
.So, to get the SHA1 value from a production Keystore go to:
Android Tools
->Export Signed Application Package
. Follow the process for signing your apk and the SHA1 will showed as a certificate.First go to jar file copy the keytool path then add into system path then run.. i hope this one is worked..
At ANDROID STUDIO do the following steps:
You will be able to see the signature at the bottom of IDE
In Addition to Lokesh Tiwar's answer
For release builds add the following in the gradle:
Now running the signingReport as in Lokesh's Answer would show the SHA 1 and MD5 keys for the release builds as well.
//the simplest way to get SHA1
//add following command to your terminal and hit enter
Best way ever with all steps:
For Release Keystore SHA1 Key:
C:\Users\hiren.patel>cd..
C:\Users>cd..
C:\>cd "Program Files"
C:\Program Files>cd Java
C:\Program Files\Java>cd jdk_version_code
C:\Program Files\Java\jdk_version_code>cd bin
C:\Program Files\Java\jdk_version_code\bin>keytool -list -v -keystore "D:\Hiren Data\My Root Folder\My Project Folder\keystore_title.jks" -alias my_alias_name -storepass my_store_password -keypass my_key_password
Replace below thing:
jdk_version_code
D:\Hiren Data\My Root Folder\My Project Folder\keystore_title.jks
my_alias_name
my_store_password
my_key_password
Done