How Android Studio gets the debug version of SHA1 and release SHA1

Source: Internet
Author: User
Tags sha1

Objective:

When we integrate the high-Performance Map positioning function into the project, we need to use the release version and debug version of the security Code SHA1, so today I will summarize how to get SHA1 under Windows and Mac , I hope to help you.

First, unify, find terminal in Android Studio and open it:

Then, I'll show you how to get SHA1 under Windows and under Mac, respectively:

Windows:

First, get the debug version of SHA1, as follows:

1. Enter command C: enter the C drive;

2. Enter the command CD users\ your username \.android found. Android;

3. Enter command keytool-list-v-keystore debug.keystore enter key;

4. Enter the KeyStore password for android Enter, you can see the debug version of SHA1!

Second, to obtain a signed version of the SHA1, as follows:

1. Ibid.;

2. Ibid.;

3. Enter command keytool-list-v-keystore signature file path enter;

4. Enter the KeyStore password signature file password Enter, you can see the release version of SHA1!

Mac:

First, get the debug version of SHA1, as follows:

1. Direct input command keytool-list-v-keystore ~/.android/debug.keystore enter key;

2. Enter the KeyStore password for android Enter, you can see the debug version of SHA1!

Second, to obtain a signed version of the SHA1, as follows:

1. Direct input command keytool-list-v-keystore ~/signature file enter key;

2. Enter the KeyStore password signature file password Enter, you can see the release version of SHA1!

How Android Studio gets the debug version of SHA1 and release SHA1

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.