FAQs about android Baidu map sdk Configuration
1. You cannot create <MapView> when creating the map xml on the simulator. You need to create <TexturemapView>.
2. When obtaining the key of Baidu map, note that the SHA1 and package names are the same as those of the created package, in android Studio, because the package name can be modified, you need to go to build. view in Gradle
The package name in the red underline must be the same as the filled package name,
In addition, the SHA1 retrieval may be different from the real SHA1, and the Authentication Error errorcode: 230 uid:-1 appid-1 msg: APP Scode verification fails.
The following steps are required:
Then compare your SHA1 with the one obtained above to see if the SHA1 is the same. If the SHA1 is different, use the one obtained above to go to the page generated by your Baidu key to generate a new one. This problem should be solved later.
I hope this will be helpful to you.