谷歌地图Android的API提供了一个的NoClassDefFoundError地图、Android、NoClassDefFoundError、API

2023-09-13 23:48:07 作者:女人请迩别如此矫情丶

我的应用程序只包括与覆盖的地图,但是当我创建图形页面,我的应用程序崩溃,一个出现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 link.