0

I am building an Android app. I have one project that is MyAndroid project. I have another project called MyModel. I define my data classes (like User) in MyModel.

When I try to create a new user in MyAndroid project, I get a NoClassDefFoundError.

I have included MyModel in Java Build Path > Projects, and everything looks great at design time and compile time. But I get the error at runtime.

I am using Eclipse Kepler. I am using the Google Nexus emulator.

I assume I am missing some setting where I need to "reference" the MyModel project properly, so that the MyModel code gets built and deployed along with the MyAndroid project, to the emulator. However, I can't figure out how to do that.

Thanks for any help.

Lavekush Agrawal
  • 6,040
  • 7
  • 52
  • 85
essedbl
  • 520
  • 1
  • 7
  • 19

1 Answers1

0

I found the answer here on Stack Overflow!

I had to go into the build path properties and then go to the ORder tab, and check mark the MyModel project...

Community
  • 1
  • 1
essedbl
  • 520
  • 1
  • 7
  • 19