In the use of Baidu map in order to obtain key, you need to enter the release version SHA1 code and debug version SHA1 code. First, according to the official command to obtain the debug version of SHA1 code: Development mode using Debug.keystore, command: keytool-list-v-keystore debug.keystore directly such input you may error Keytool is not an internal command and is not a running program . This is because Keytool is a command of the Java JDK's own tool, and you are switching to the D:\Program Files\java\jdk1.7.0_67\bin directory to use this command. Change to command: keytool-list-v-keystore c:\users\Administrator\.android\debug.keystore Problem Solving
The KeyStore password is empty by default.
In this case you will get the SHA1 code in debug mode.
To get the SHA1 code in release mode, first you have to have your own keystore, you can easily create your own KeyStore steps via Android Studio: Click Build--Generate singed apk to generate your own K by step Eystore, then follow the command: Keytool-list-v-keystore E:\keystore\app.jks can get the SHA1 code in release mode.
How to get SHA1 codes and signatures in Android studio