How to obtain developer Key (AK) on Baidu Maps development platform

1. Search Baidu Maps Open Platform

 2. Click to select the console

3. My Application -> Create Application

 Four,

five,

6. Obtain the development version SHA1

 1. The first step, if you are using a higher version of android studio, it will have its own jdk, you need to change the jdk version in android studio to the jdk version installed on your computer, I installed jdk1.8

2、file->project structure

 3. Click Gradle Settings

 4. Change jdk

 5. Enter this path, select the path, then press cmd, press Enter directly, and reach the console

 6. Enter the command: keytool -v -list -keystore debug.keystore
keystore password:
the SHA1 shown below android is the development version of SHA1

 7. Obtain the SHA1 of the release version

1. First, you need to generate a signature file. You can refer to my other article, A tutorial on Android Studio package signature

2. Enter the path of jdk that comes with android studio, select and type cmd, and enter the terminal

 3. Command: keytool -v -list -keystore
The path of your own signature Keystore password: the password you set when you just generated the
signature

 Eight, get the package name

Enter android studio->project->app->src->AndroidManifest.xml

 9. Fill in the obtained development board SHA1, release version SHA1, and package name into the corresponding positions.

10. Access application (AK) is the key we need

Guess you like

Origin blog.csdn.net/weixin_45612718/article/details/126279683