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