So, I'm trying to develop a client-server application for Android. For this purposes I've created an engine, that I'm going to use both in server and in Android applecation and export it as a .jar file.
There was no issues in using this engine.jar on server side (simple background java application), but I faced some problems with linking mention .jar file to my android project.
To link engin.jar I follow some steps:
After this engine.jar could be seen in Android Dependences group. Also I can use all classes from that .jar, Eclipse doesn't mark them as error. My project compiles fine, but the app crashes when I'm trying to create any object from engine.jar with the following error:
04-15 23:18:12.885: E/AndroidRuntime(17409): java.lang.NoClassDefFoundError: Common.Message.Message
I guess I've tried everything. Could anyone share his ideas about the root cause of described situation?
I too experienced the same problem. I resolved it by doing the following:
Right click on the project directory -> Build Path
-> Configure Build Path
-> Select Tab Order and Export
-> Check/Select the checkboxes of the concerned .jar
files -> Press Ok
.
Hope this resolves your problem as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With