且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.lang.NoClassDefFoundError的:如何解决这个问题?

更新时间:2023-09-21 08:00:52

您需要进入构建路径/订单和出口,并检查库的SDK 17.然后清理项目。

java.lang.NoClassDefFoundError的:如何解决这个问题?

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.

Here is my IDE configuration.

Eclipse: Indigo Release version 2  
Java SDK: 1.6.0_31  
Android SDK: 17

You need to go into Build Path/Order and Export, and check the libs as of SDK 17. Then clean your project.