The SHA1 values under development mode (Debug) and Release mode (release) are different, and when releasing the APK, you need to reconfigure key according to the KeyStore of the release apk, and get the method of SHA1 in the release mode refer to method two .
here's how to get the SHA1 value.
get SHA1 through Eclipse:
With ADT 22 or later, you can view it directly in Eclipse. Windows: In Eclipse, turn on Android---Build, Window, preferances. MAC: Turn on Android---Build, Eclipse/adt->preferances, in Eclipse. The value in "SHA1 fingerprint" in the Pop-up dialog box is the SHA1 value of the Android signing certificate
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; Line-height:28px "> get SHA1 from Android Studio:
First step, open Android Studio Terminal tool
Step two, input command: keytool-v-list-keystore keystore file path
Step three, enter KeyStore password
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px "> get SHA1 using Keytool (JDK's own tool):
1. Run into the console.
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">2. Enter the CD in the pop-up console window. Android navigates to the. Android folder.
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">3. Continue to enter commands in the console.
development mode use Debug.keystore, command: keytool-list-v-keystore debug.keystore release mode using apk corresponding KeyStore, command: keytool-list-v-keystore apk k Eystore
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px "> Prompt for the KeyStore password, the development mode default password is Android, the release mode password is the password set for the APK keystore. Enter the key after the carriage return (if you do not set a password, you can directly enter), at this time you can get the SHA1 value in the information displayed in the console
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px ">
< Span style= "Color:rgb (82,88,93); font-family: ' Microsoft Yahei ', Microsoft Ya-Black, pinghei; font-size:14px; line-height:28px "> Description: KeyStore file for Android signing certificate file.
Get Android SHA1 and package