Google Maps Android API Authorization failure - has this service changed in the last few months?

雨燕双飞 提交于 2019-11-30 14:18:11

问题


I have coded a Xamarin Google Apps V2 application. The device I am deploying to has Google Play Services installed.

The application has all been setup correctly in the API console and I have had this application working before, months ago.

Currently, when the application is deployed to my device, I am getting the following errors in the Application output:

[Google Maps Android API] Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.

[Google Maps Android API] Ensure that the following correspond to what is in the API Console: [My API key data]

[Google Maps Android API] Failed to contact Google servers. Another attempt will be made when connectivity is established.

[Google Maps Android API] Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).

I have not changed the code from months ago when it was working, yet, as you can see above, the Google Maps component is not loading correctly.

Why would this be? Has there been a change to the Google API in the last few months? How can I get this working?

Thanks in advance


回答1:


The answer from this question solved my problem with this. I had the exact same issue!

Google maps suddenly not working



来源:https://stackoverflow.com/questions/23466789/google-maps-android-api-authorization-failure-has-this-service-changed-in-the

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!