PDA

View Full Version : No class def found error at runtime, but I can build my project perfectly



VansFannel
May 7th, 2012, 11:30 AM
I'm developing an Android 3.1 application using Android Spring Framework 1.0.0 RC1.

I can build my project, but at runtime I get the following error:


05-07 16:01:39.464: E/AndroidRuntime(654): Caused by: java.lang.NoClassDefFoundError: org.springframework.http.HttpHeaders

I have updated some Android SDKs and ADT on Eclipse. I'm not sure if this is error's cause. But, before this update it works perfectly.

Do you know why am I getting this error?

Roy Clarkson
May 10th, 2012, 11:11 AM
Are you using Maven, or dropping the jars in the libs folder?

VansFannel
May 10th, 2012, 11:19 AM
Are you using Maven, or dropping the jars in the libs folder?

No, I'm not using Maven. But I have solved my problem.

Sorry, I don't know how to delete this question.

Roy Clarkson
May 10th, 2012, 11:23 AM
Ok, thanks for letting us know.

jabdulius
Oct 24th, 2012, 12:18 PM
No, I'm not using Maven. But I have solved my problem.

Sorry, I don't know how to delete this question.

Can you please share your solution? I'm experiencing the same thing with a project I've just inherited.