After confusion APK Baidu map cannot be used normally problem overview, confusion apk

Source: Internet
Author: User

After confusion APK Baidu map cannot be used normally problem overview, confusion apk

Recently, after code obfuscation, the map suddenly cannot be used normally. After testing and analysis, the problem is found as follows:

1. When registering an AK on Baidu map, the SHA1 value generated by the debug. keystore signature file is different from the signature file used by the release package, resulting in different SHA1 values.

In this case, you need to re-use the release package signature file to obtain the SHA1 value and apply for an AK.

The generation method is as follows:

2. The other is caused by obfuscation of configuration, that is, obfuscation of files that should not be obfuscated. This time, due to the adjustment of the project structure, the bean entity class package name has changed, after obfuscation, the data cannot be parsed and an error occurs. It takes some time to discover this problem. record it for future query convenience.

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.