java.lang.NoClassDefFoundError:我该如何解决这个错误?

java.lang.NoClassDefFoundError: how do I fix this error?(java.lang.NoClassDefFoundError:我该如何解决这个错误?)
本文介绍了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:我该如何解决这个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)