Android Baidu map solution for key verification failure after packaging signature, androidkey

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.