【发布时间】:2016-10-15 06:43:11
【问题描述】:
我正在使用谷歌地图,我收到了这个错误。我做了以下事情:
得到了我的 sha1 指纹。
注册了我的项目并获得了我的项目密钥。
我不知道如何启用 Google Maps Android API v2,因为我尝试过的所有链接都是旧的,而且 Google 已经改变了它的网站设计。 请帮我。我已经在这上面浪费了很多时间。
我的 Logcat:
Authorization failure. Please see developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
E/Google Maps Android API: In the Google Developer Console (console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyBK8rKr9lCRLhzv68I4Q26G9pHHO******
【问题讨论】:
-
别忘了
Clean Project!它解决了我更改 API 密钥后的问题。 -
这就是我解决这个问题的方法。 stackoverflow.com/a/67215294/11187647我希望它对你有用。
标签: android google-maps google-maps-android-api-2