Android的"你好,图形页面"教程 - 地图图块不加载图形、加载、你好、页面

由网友(牵xx的手鸭)分享简介:我是新的Andr​​oid软件开发和新来这个网站。我希望有人可能会与我有这个问题的一些经验。I am new to Android software development and new to this site. I am hoping someone might have some experience wi...

我是新的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密钥为您调试证书的响应。 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.

阅读全文

相关推荐

最新文章