且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android的谷歌地图应用程序显示在地图上的灰色背景,而不是

更新时间:2023-01-11 15:06:52

此问题是由于当有你的密钥或问题,它在谷歌API控制台配置有问题。

This problem is caused when there is a problem with your key or a problem with it's configuration in the Google API Console.

去了这篇博客我写一篇关于如何产生的关键和整合在控制台:

Go over this blog post I wrote on how to produce the key and integrate in in the console:

谷歌地图API V2关键

如果这是没有帮助的,你可以尝试删除你的用户文件夹,编译 dubug.keystore 文件夹 在eclipe(这导致再生该键)的一些项目,并尝试重新注册。

if this is not helpful you can try to delete the dubug.keystore folder in you user folder, compile some project in eclipe (which result in regenerating this key) and try to register it again.

更新: 从您发布的新的错误,你有没有在你的manifest文件此权限:

UPDATE: From the new error you posted, do you have this permission in your manifest file:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>