不同 Android 设备上的 Google 地图 API 密钥

发布于 2024-09-29 18:43:38 字数 205 浏览 0 评论 0原文

我在我的应用程序中使用 MapView。我在发布密钥存储之前拥有来自 google 的 API 密钥。

我使用 eclipse 导出签名的 APK 并尝试将其安装在设备上。

在 Android 1.6 的 G1 设备上一切正常,但在 Android 2.2 的 HTC Desire 上地图不会出现。我只看到灰色网格和缩放控件。

问题可能出在哪里?

I'm using MapView in my app. I have API key from google fore my release key store.

I'exporting signed APK with eclipse and trying to install it on devices.

On G1 device with Android 1.6 everything works well, but on HTC Desire with android 2.2 maps doesn't appear. I see just grey grid and zoom controls.

Where problem can be?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

征棹 2024-10-06 18:43:38

我认为这与您的 Maps API 密钥没有任何关系。我认为这与 Google API 1.6 和 2.2 版本的差异有关。您的 logcat 中是否有任何错误或只是一个空地图?

I don't think this has anything to do with your Maps API key. I think it has to do with differences in the Google APIs from version 1.6 and 2.2. Do you get any errors in your logcat or just an empty map?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文