我正在开发一个使用 Osmdroid maps api 的 Android 应用程序.我已将库作为外部 jar 添加到我的构建路径中,并且在编译期间我没有收到任何错误.但是,在设备部署时,我收到以下错误:
I am developing an Android application which makes use of the Osmdroid maps api. I have added the library as an external jar in my build path and I do not get any errors during compile time. However, upon device deployment I get the following error:
03-27 16:18:50.986: E/AndroidRuntime(3306): java.lang.NoClassDefFoundError: org.osmdroid.util.GeoPoint
我做了一些谷歌搜索,这对我来说仍然是个谜.
I have done some googgling and it is still a mystery to me.
这是我的 IDE 配置.
Here is my IDE configuration.
Eclipse: Indigo Release version 2
Java SDK: 1.6.0_31
Android SDK: 17
您需要进入 Build Path/Order 和 Export,并检查 SDK 17 的库.然后清理您的项目.
You need to go into Build Path/Order and Export, and check the libs as of SDK 17. Then clean your project.
这篇关于java.lang.NoClassDefFoundError:我该如何解决这个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!