谷歌地图Android的API提供了一个的NoClassDefFoundError [英] Google Maps Android API gives a NoClassDefFoundError

查看:144
本文介绍了谷歌地图Android的API提供了一个的NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序只包括与覆盖的地图,但是当我创建图形页面,我的应用程序崩溃,一个出现NoClassDefFoundError。我使用谷歌API AVD符合我的目标,但显然我还是做错了什么。任何想法?

My app just consists of a map with an overlay, but when I create my MapView, my app crashes with a NoClassDefFoundError. I'm using the Google API AVD that matches my target, but apparently I'm still doing something wrong. Any ideas?

编辑:万一有帮助,我的NoClassDefFoundError抱怨 [普通] 。我可以理解为什么没有一流的definiton为 [普通] ,但我不知道在那里这与未来。

In case it helps, my NoClassDefFoundError is complaining about [generic]. I can understand why there's no class definiton for [generic], but I'm not sure where that's coming from.

此外,以后的ClassNotFoundException的抱怨 com.google.android.maps.MapView的装载机dalvik.system.PathClassLoader [/data/app/mathphreak.cellmap-1.apk] ,并且然后继续导致不同的NoClassDefFoundError为 java.lang.NoClassDefFoundError的:com.google.android.maps.MapView

Also, a later ClassNotFoundException complains of com.google.android.maps.MapView in loader dalvik.system.PathClassLoader[/data/app/mathphreak.cellmap-1.apk], and that then goes on to cause a different NoClassDefFoundError for java.lang.NoClassDefFoundError: com.google.android.maps.MapView.

推荐答案

请确保您已包括在应用程序中以下行清单

<uses-library android:required="true" android:name="com.google.android.maps" />

确保它在正确的位置。我的问题(也有类似的错误消息)是,我已经在那里把这个,但像用途,权限东西,它只是根元素体现在,而实际上的的用途库元素被假设是该应用程序元素放在。如果我是不够清楚看到部分:配置从Sameers <一个应用程序清单href="http://blog.doityourselfandroid.com/2011/01/18/using-google-maps-in-your-android-app">link.

这篇关于谷歌地图Android的API提供了一个的NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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