不幸的是谷歌地图API演示已经停止 - 谷歌地图Android版API第2版 [英] Unfortunately Google Maps API Demos has stopped - Google Maps Android API v2

查看:276
本文介绍了不幸的是谷歌地图API演示已经停止 - 谷歌地图Android版API第2版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个谷歌地图Android版API V2的一个问题。
每次我试图打开设备上的应用程序,甚至在模拟器此消息始终显示

I have a problem with Google Maps Android API v2. Every time I try to open the app on device or even on emulator this message always display

不幸的是谷歌地图API演示已经停止

我已经作出解释,我做每一个步骤的视频

I have made a video that Explain every steps that I did

www.youtube.com/watch?v=WUmlu3CNOSo

其实我已经尝试了网上很多教程,
还我试图rel=\"nofollow\">谷歌的说明根据

Actually I have tried many tutorials on internet, also I tried to do the coding by myself according to Google's instructions and this is the error that display on Eclipse

www.ahmadssb.com/ttv2541/com.example.mapdemo.txt

请指教。

推荐答案

答案很简单:

更改您的订单与出口名单([项目]属性,Java构建路径)下列顺序; SRC,根,Android的X.X.X,Android的依赖,[任何外部库,你可能有。离开src和根检查。周围有一出戏与选中或取消选中其他人,直到它的作品。

Change your 'Order and Export' list ([project] Properties, Java Build Path) to the following order; src, gen, Android X.X.X, Android Dependencies, [any external libraries you may have]. Leave src and gen checked. Have a play around with checking or unchecking the others until it works.

背景:

我开始在过去的一个月左右让这些类型的错误,所以它可能与ADT或某事的新版本做。很多周围挖后,我通过糊涂,发现答案解决沿途错误的部分。

I started getting these types of errors in the last month or so, so it may be to do with a new version of ADT or something. After much digging around I muddled through and found pieces of answers solving errors along the way.

该ClassDefNotFound错误是因为Eclipse没有导出您的APK库,所以当它涉及到的设备上运行,它们不存在。为了解决这个问题,请务必检查正确的事情,使他们出口。不幸的是,这个步骤也绊倒了我,因此所有我能说的是有检查每个不同的组合有点发挥。

The ClassDefNotFound error is because Eclipse is not exporting the libraries with your APK so when it comes to running on the device, they're not there. To fix this, make sure you check the correct things so that they are exported. Unfortunately, this step also trips me up so all I can say is have a little play with checking each in different combinations.

我来下一个错误是对面沿多地塞米松文件线的东西。我猜有一些冲突,因为我有谷歌的Andr​​oid 4.2.2的API和Android依赖检查。我假设有是一个方法或类,它不知道该用的两个实例。取消选择将Android的依赖关系解决它。

The next error I came across was something along the lines of Multiple Dex files. I'm guessing there was some conflict because I had Android Google APIs 4.2.2 and Android Dependencies checked. I assume there were two instances of a method or class that it didn't know which to use. Unchecking Android Dependencies solved it.

希望这会有所帮助,我已经浪费在这样的日子,所以希望这将节省别人那个时候!

Hope this has been helpful, I've already wasted a day on this so hopefully it will save someone else that time!

这篇关于不幸的是谷歌地图API演示已经停止 - 谷歌地图Android版API第2版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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