Amap trajectory map

In recent exercise-related projects that require trajectory, take a look at Google, but also to get the first day Location, then you can not use, so high into German, High German map packs Amap high moral map locating Location, need to get issued by the German high application platform key, step process is as follows:

1.Android Studio generated keystore

build - .jks File> Generate signed apk, create new keystore, create .jks file to the root directory of the project, to try to create a signature for the package apk.

Configuring gradle the keystore, specify just generated keystore file.

2. Obtain keystore file from the command SHA1 code

keytool -v -list -keystore location.jks

证书指纹:
         MD5:  A9:4E:83:33:A1:A1:D7:75:D3:02:0F:3F:1F:FF:A2:0E
         SHA1: C3:1D:7F:8D:4A:E6:47:FB:57:CE:36:AC:DF:1B:6C:80:BD:F6:15:8D
         SHA256: 34:B0:30:7F:FD:2F:B9:5C:DD:84:75:25:28:B6:33:7D:13:3A:70:05:79:9B:F4:9F:3A:D2:FF:AF:D5:7B:73:8F

复制代码

3. Use more than SHA1 registration application App in high German official website, and generate key

lbs.amap.com/dev/key/app

The generated key to fill Manifest.xml in the meta-data.

<meta-data android:name="com.amap.api.v2.apikey" android:value="e1332bdc1e52860fca40d226137e69f2"/>
复制代码

Guess you like

Origin blog.csdn.net/weixin_34319999/article/details/91363261