java.lang.NoClassDefFoundError: how do I fix this error?(java.lang.NoClassDefFoundError:我该如何解决这个错误?)
问题描述
我正在开发一个使用 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:我该如何解决这个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:java.lang.NoClassDefFoundError:我该如何解决这个错误


基础教程推荐
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 降序排序:Java Map 2022-01-01
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01