新的googlemap v2 API密钥问题

时间:2014-06-02 13:22:28

标签: android google-maps google-maps-android-api-2

我使用地图创建了一个应用程序,但地图不会加载切片。

在控制台中我得到了日志:

ru.gs.maptest I/Google Maps Android API﹕ Failed to contact Google servers. Another attempt will be made when connectivity is established.

ru.gs.maptest E/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).

对于创建项目,我在AndroidStudio中使用了一个模板(新项目 - > ...-> GoogleMapActivity-> ...)

AndroidStudio根据文档中描述的规则生成清单文件。只需要插入地图密钥。

  1. 获取调试密钥指纹
  2. 获取包装名称
  3. api控制台中的
  4. 获取地图api密钥
  5. 将密钥置于清单
  6. 跑步,我们得到一张灰色地图。
  7. 一切看起来都正确,一切都是通过文档完成的,但不起作用。我没有第一次创建程序,我有地图的工作项目。我开始明白这个问题了。

    我检查了一切,我更改了包,我创建了一个新密钥,我为发布创建了密钥,我添加了清单不同的标签,使用了所有提示,发现了Ì堆stackoverflow,再做一遍,使用不同的网络,不同设备,清理和删除设备上的程序,重置设备和计算机。它仍然只是重新安装操作系统。

    旧程序与新程序类似,只需两滴水。但旧程序有效,新程序无效。

    我决定为旧项目分配一个新的项目包名,我有旧密钥。(使用gradle flavors)并映射开始下载切片。

    经过一些实验,我得出结论:

    新创建的地图api键不起作用

    尝试创建一个简单的项目。你也有同样的问题吗?

    此Google服务错误?


    P.S。我可以根据需要提供源代码

    像我这样的人(现在):

    For google maps api v2, what is the limit for creating new android maps key(s) and adding applications to single key

    App cannot connect to Google servers for access to Google maps

    Google Maps fragment showing blank grey map

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

    Google maps suddenly not working

0 个答案:

没有答案
相关问题