Possible duplicate:
NoClassDefFoundError - Eclipse and Android
I see that this question is often asked in many different contexts. Perhaps we can establish some strategies for finding and fixing them? I'm a nikobish myself, so all I can do is horror stories and questions, sorry ...
It seems to be thrown when the class is visible at compile time, but not at runtime ... how can this happen?
In my case, I am developing an application that uses the Google APIs in Eclipse for the Android platform. I configured Project Properties / Java Build Path / Libraries to include gdata.jars, and all is well. When I run in the emulator, I gain strength and logcat shows NoClassDefFoundError in a simple new ContactService ("myApp"); I also tried the new CalendarService ("myApp") with the same results.
Is it possible or desirable to statically link at compile time to avoid the problem?
How does dynamic linking of an additional library work in a mobile environment? Either it should be attached to my .apk, or do I need to "install" it? ... hmmm.
Council appreciated.
java android noclassdeffounderror eclipse gdata-api
Djc
source share