Android Baidu map solution for key verification failure after packaging signature, androidkey
During the development process, we may have encountered this problem. The Baidu map development and debugging application is normal, and the authorization key fails to be displayed after packaging.
This is because the Application Generated by debugging uses the default SHA1 value of eclipse.
We need to use the self-created digital signature to solve this problem. Solutions
Set android Environment Variables
Open Cmd and enter the following command
1: cd C: \ Program Files \ Java \ jdk1.7.0 _ 13 \ bin
2. keytool-genkey-alias android. keystore-keyalg RSA-validity 20000-keystore android. keystore
3: Enter the key password (because it is ciphertext, do not think the keyboard does not respond, for example, enter 111111 and press Enter) other information as prompted. End by Y
The C: \ Program Files \ Java \ jdk1.7.0 _ 13 \ bin \ android. keystore file is generated.
4: Right-click the project android tool-export signed application package
Enter C: \ Program Files \ Java \ jdk1.7.0 _ 13 \ bin \ android. keystore and key
5: As you can see, a new SHA1 is generated. Replacing the apk generated by Baidu map development after the SHA1 package on the Baidu Console does not prompt that the authorization Key fails.