Get Android SHA1 and package

Source: Internet
Author: User
Tags sha1

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.