几年前,我在自己的应用程序上尝试了Google街景api,并且按我的意愿工作,但是本周我使用了相同的代码并尝试使用谷歌街景api,但没有成功,“糟糕!发生了什么事错误”

当我检查logcat时说:

2019-10-04 09:49:23.832 28904-28904/com.ionlab.project.volley E/Google Maps Android API: The Google Maps Android API Street View service has been disabled for this application. This might be because of an incorrectly configured project, or an invalid API key. See the Google API console: https://console.developers.google.com, and information about Obtaining an API key: https://developers.google.com/maps/documentation/android-api/signup.


即使我的API配置正确

最佳答案

确保已将新项目注册到Google API控制台。

Google Maps Android API:此应用程序已禁用Google Maps Android API街景服务。

==>这表示您必须从API控制台启用MAP API for android。同时从您的StreetView Service启用API Console

10-07 20:05
查看更多