Android地图:地图不显示在设备上

编程入门 行业动态 更新时间:2024-10-27 08:39:16
本文介绍了Android地图:地图不显示在设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以在仿真器中看到地图,但是一旦加载设备地图上的应用程序就不会显示。

I am able to see Map in emulator but once I load app on device map does not show up.

仿真器具有google api 1.6的目标,设备有android 1.6加载。

Emulator have target as google api 1.6 and device have android 1.6 loaded.

这个差异是否导致问题?

Is this diffrence causing issue?

请帮助并提前感谢。

please help and thanks in advance.

推荐答案

你只是看到灰瓦吗?在这种情况下,这几乎绝对是API密钥的错误。仿真器使用调试密钥库,使用 androiddebugkey ,因此您应该为此创建一个API密钥。记住在将应用程序发布到市场时更改=)

Are you just seeing gray tiles? In that case it's almost definitely the API key that's wrong. The Emulator uses the debug keystore, with androiddebugkey, so you should create an API key for that. Remember to change it when you publish the app to the market =)

获取API密钥

更多推荐

Android地图:地图不显示在设备上

本文发布于:2023-06-07 22:05:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/568609.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:地图   设备   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!