[Method Record] Obtain SHA1 through Android Studio

Recently, when I was using DJI's mobile SDK for secondary development, I needed to learn route planning and needed to use maps, so I applied for an API for Amap to record the process of applying for a key to facilitate subsequent learning .

Reference: Android calls Amap service

Official documentation: FAQ | Amap API (amap.com)

What is an Android certificate? Instructions for using cloud packaging certificate on Android platform - DCloud Q&A


1. Open the command line tool

2. Enter " path to keytool " +   -v -list -keystore + " path to debug.keystore ", mine is as follows

D:\DevelopmentKits\javajdk\bin\keytool -v -list -keystore C:\Users\26977\.android\debug.keystore

1) Serial number 1 in the above picture is the path of keytool. In the bin folder of the JDK installation path , my jdk installation path is: D:\DevelopmentKits\javajdk

2) Serial number 2 in the above picture is the path of debug.keystore, which is in the .android folder 

3) Enter the password of the keystore, the default is android

4) The alias of the key in the keystore, used to configure the signature file in android

5) The SHA1 corresponding to the key is used when applying for a key in the console of the Amap development platform.

Guess you like

Origin blog.csdn.net/weixin_51972142/article/details/132729460