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.