确保“Google Maps Android API v2"已启用.当我尝试实施 Google 地图时出现此错误 [英] Ensure that the "Google Maps Android API v2" is enabled. I am getting this error when I try to Implement Google Maps

查看:35
本文介绍了确保“Google Maps Android API v2"已启用.当我尝试实施 Google 地图时出现此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用谷歌地图,但出现此错误.我做了以下几件事:

I am working on google maps and I am getting this error. I had done the following things:

  1. 得到了我的 sha1 指纹.

  1. 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,

  1. 登录谷歌开发者控制台
  2. 从左侧面板中选择库选项.
  3. 现在您可以看到所有 API 列表并转到 Google Maps API 并选择谷歌地图 Android API.
  4. 现在您可以看到启用/禁用 API 的选项.启用它.

希望能帮到你.

这篇关于确保“Google Maps Android API v2"已启用.当我尝试实施 Google 地图时出现此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆