Objective:
When we integrate the high-Performance Map positioning function into the project, we need to use the release version and debug version of the security Code SHA1, so today I will summarize how to get SHA1 under Windows and Mac , I hope to help you.
First, unify, find terminal in Android Studio and open it:
Then, I'll show you how to get SHA1 under Windows and under Mac, respectively:
Windows:
First, get the debug version of SHA1, as follows:
1. Enter command C: enter the C drive;
2. Enter the command CD users\ your username \.android found. Android;
3. Enter command keytool-list-v-keystore debug.keystore enter key;
4. Enter the KeyStore password for android Enter, you can see the debug version of SHA1!
Second, to obtain a signed version of the SHA1, as follows:
1. Ibid.;
2. Ibid.;
3. Enter command keytool-list-v-keystore signature file path enter;
4. Enter the KeyStore password signature file password Enter, you can see the release version of SHA1!
Mac:
First, get the debug version of SHA1, as follows:
1. Direct input command keytool-list-v-keystore ~/.android/debug.keystore enter key;
2. Enter the KeyStore password for android Enter, you can see the debug version of SHA1!
Second, to obtain a signed version of the SHA1, as follows:
1. Direct input command keytool-list-v-keystore ~/signature file enter key;
2. Enter the KeyStore password signature file password Enter, you can see the release version of SHA1!
How Android Studio gets the debug version of SHA1 and release SHA1