问题描述
我正在使用谷歌地图,但出现此错误.我做了以下几件事:
I am working on google maps and I am getting this error. I had done the following things:
得到了我的 sha1 指纹.
Got My sha1 fingerprint.
注册了我的项目并获得了我的项目密钥.
Registered my project and got my project key.
我不知道如何启用 Google Maps Android API v2,因为我尝试过的所有链接都是旧的,而且 Google 已经更改了它的网站设计.请帮我.我已经在这上面浪费了很多时间.
I don't know to how to get Google Maps Android API v2 enable because all the links I have tried are old and Google had changed it's site design.Please help me. I already have wasted a lot of time on this.
我的 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******
推荐答案
从错误中可以看出您没有为 android 启用 google map api.要启用,
From error it is clear that You did not enable google map api for android. To enable,
- 登录谷歌开发者控制台
- 从左侧面板中选择库选项.
- 现在您可以看到所有 API 列表并转到 Google Maps API 并选择谷歌地图 Android API.
- 现在您可以看到启用/禁用 API 的选项.启用它.
希望能帮到你.
这篇关于确保“Google Maps Android API v2"已启用.当我尝试实施 Google 地图时出现此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!