"Detailed tutorial" on how to apply for Baidu map in Android studio SHA1 value in the new version of key

Source: Internet
Author: User
Tags sha1

First, write in front

Now more and more API interface requirements are required to provide our project SHA1 value, the development version is currently not high, but the release is required. And the current positioning in the major app is also more common, the current mainstream Baidu map and high-gold map in the application will appear the following situation.

So, how exactly does this SHA1 get it?

Here's how Android studio gets it, eclipse can be set by configuring Gradle, and since Android Studio is slowly becoming mainstream, here's just how to get it under Android Studio. Please also use Eclipse's Crossing master to do science by himself.

Second, detailed steps

1, here need everyone to configure the JDK environment, I think with Android STUDIO,JDK is generally configured.

2. We need to generate a JKs file in this directory. Generated in the form of see. (This is also the way to package the release apk)

1) Click Build, select Generate Signed APK ...

2) Create a key if you don't have one, there are small partners to ignore.

3) Fill in the basic information, you just need to remember your path and JKS name and password, go out and enter click Next.

4) The first is to generate the path of the packaged apk, below you can choose whether it is the release version or the debug version. Here we choose Release version.

5) After finish, we will generate what we need.

6) I am accustomed to copy to the JDK Bin directory, no test does not move has no effect.

3. All right, everything needs to be ready. Now use the command line directly (command line with administrator privileges on the C drive)

Enter Keytool-list-v-keystore your JKS name after entering the bin directory

Enter the password after entering, see, SHA1 will get.

"Detailed tutorial" on how to apply for Baidu map in Android studio SHA1 value in the new version of key

Related Article

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.