[问题] Google Map 无法显示

楼主: nash0914 (nash)   2014-09-23 22:53:29
I/Google Maps Android API﹕ Failed to contact Google servers. Another attempt will be made when connectivity is established.
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).
出现以上错误讯息
地图只出现右下角的加减图示与左下角的Google字样
上网找过解答
大部分都是API KEY或者是AndroidManifest.xml的设定问题
我使用debug.keystore去得到SHA1
再到Google Developers Console取得API KEY
然后Google Maps Android API v2也有开启
我有另外新增一个专案可以顺利显示出地图
AndroidManifest.xml的设定都一样
只是两个专案都是使用debug.keystore去得到API KEY
不晓得这样有无影响
也重设API KEY好几次
都一样无法顺利显示出地图
在网络上有找到这个解答
http://stackoverflow.com/questions/23805769/google-maps-suddenly-not-working?answertab=active#tab-top
我本身的专案中有使用到
https://github.com/loopj/android-async-http
这个3rd-parties libraries
我有看里面的程式码 确实有上面stackoverflow的那一行程式码
但是看起来似乎没有使用到 我也不确定
网络上都爬过很多文章 一样是不太行
感谢大家
作者: terryyamg (少说多做 多说多错)   2014-09-23 23:18:00
http://ppt.cc/Uu83 第三点用Key for browser apps (with referers)的 API key

Links booklink

Contact Us: admin [ a t ] ucptt.com