Android谷歌地图无法正常工作

时间:2014-10-18 20:38:04

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

我使用android google maps apis,应用程序编译得很好,但是当我在手机上部署它时,它无法加载磁贴,这就是我错过的错误结束了。

10-18 22:30:46.260  21460-21776/com.nescafe.nescafe2.nescafe2 D/REQUEST﹕ Error processing: com.google.maps.api.android.lib6.b.d@4284ddc0 not retrying
10-18 22:30:46.267  21460-21776/com.nescafe.nescafe2.nescafe2 D/REQUEST﹕ Retrying: com.google.maps.api.android.lib6.c.au@42a95a00
10-18 22:30:50.174  21460-21776/com.nescafe.nescafe2.nescafe2 D/REQUEST﹕ Connection opened to:https://clients4.google.com/glm/mmap/api
10-18 22:30:50.181  21460-21776/com.nescafe.nescafe2.nescafe2 D/REQUEST﹕ Open Connection
10-18 22:30:50.346  21460-21776/com.nescafe.nescafe2.nescafe2 D/REQUEST﹕ DRD(39): 62|147

我仔细检查了API_KEY,这是正确的,所以我做错了什么?

2 个答案:

答案 0 :(得分:1)

也许你的SHA-1错了。如果您正在使用eclipse,请执行此步骤。

转到“窗口”标签,然后点击“偏好设置”。

窗口偏好设置上,点击 Android (左侧面板),然后点击“构建”。检查SHA-1是否与Google控制台相同

答案 1 :(得分:0)

如果SHA-1正确,则Web控制台上的包正常且密钥正确(并且您在第一次运行后更改了密钥),尝试清除应用程序的所有数据。 有时键被缓存到某个地方(或类似的东西,我得到这样的错误)