Android Gaode map, obviously its sha1 and package name are correct, but still always report KEY authentication failure location Error, ErrCode: 7, errInfo: KEY error

Android AutoNavi map key authentication failed

Tool download address: http://download.csdn.net/detail/gywuhengy/9817286

1. The editor recently encountered a huge disgusting problem. The maps in the previously written projects cannot be used. The log print information always displays:
location Error, ErrCode: 7, errInfo: KEY error, please go to http://lbs.amap .com/api/android-location-sdk/abouterrorcode/ View error code description.

2. I thought it was because the sha1 changed automatically, so I checked again and again and found that my sha1 has not changed, and the package name is not wrong, but the applied key is not available, which is really annoying, but there is a problem, the project Change a computer, the key applied on the computer on the other day can be used. I wipe it and it
crashes . Is there something wrong with my computer?

3. Later, I used the sha1 security code check tool to check the security code of the application, only to find that the sha1 of my application is different from the sha1 of my computer, so the applied key cannot be used (download the specific tool http://download. csdn.net/detail/gywuhengy/9817286 )
Re-apply the sha1 and package name of the application detected by the tool, and finally it works

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325478996&siteId=291194637