Android的"你好,图形页面"教程 - 地图图块不加载 [英] Android "Hello, MapView" Tutorial - Map Tiles Do Not Load

查看:199
本文介绍了Android的"你好,图形页面"教程 - 地图图块不加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的Andr​​oid软件开发和新来这个网站。我希望有人可能会与我有这个问题的一些经验。

I am new to Android software development and new to this site. I am hoping someone might have some experience with the problem I am having.

我一直在跟随您好,MapView类教程为了不仅学习Android框架,同时也是谷歌地图图书馆。我已经尽我所能实现的事情完全按照教程指示。我的问题是,应用程序不会加载在我的模拟器(甚至我的手机上为此事),但地图图块不会加载。

I've been following the Hello, MapView tutorial in order to not only learn the Android framework, but also the Google Maps library. I've tried my best to implement things exactly as the tutorial has instructed. My problem is that the application does load in my emulator (or even on my phone for that matter), but the map tiles do not load.

在搜索谷歌,我发现后由别人在其他网站有同样的问题,但他/她的问题是,添加到AndroidManifest.xml文件中的重要要素,并以正确的顺序。在我的我再次检查这一点,但一切似乎是正确的。

Searching Google I found a post by someone else on another site having the same issue, but his/her problem was that the important elements added to the AndroidManifest.xml file were not in the right order. I double-checked this in mine, but everything seems to be right.

所以,我不知道是什么问题,并希望其他人之前已经看到了这一点。我可以提供的code的任何片段,如果这将有助于。

So, I am not sure what the issue is and was hoping others have seen this before. I can provide any snippets of code, if that would help.

感谢你。

推荐答案

非装载砖通常不具有API密钥设置正确的结果。 获取一个地图API密钥

Non-loading tiles are usually the result of not having the API key set up correctly. Obtaining a Maps API key

要回答你离开到D:如果你想拥有它只是工作当您从Eclipse中运行,你需要获得一个API密钥为您调试证书的响应。 <一href="http://$c$c.google.com/intl/sv-SE/android/add-ons/google-apis/mapkey.html#getdebugfingerprint">There's像以前一样在同一个页面说明。请注意,您必须切换回您等重点发布虽然之前。

To answer the response you left to d.: If you want to have it "just work" when you run from Eclipse you'll need to get an API key for your debug certificate. There's instructions on the same page as before. Do note that you'll have to swap back to your other key before publishing though.

这篇关于Android的&QUOT;你好,图形页面&QUOT;教程 - 地图图块不加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆