Search code examples
androidcommonsware-cwac

Can't run EndlessAdapterDemo App


I'm trying to look at the EndlessAdapter demo (https://github.com/commonsguy/cwac-endless), but I keep getting a NoClassDefFoundError for the class com.commonsware.cwac.endless.demo.DemoAdapter. But, the class is clearly there! I didn't change any code at all, other than use the "Fix project setup" option on Eclipse.

I've looked everywhere and I can't find how to get rid of this error!

Here's a screenshot: http://grab.by/ikO6

If someone could give me a step-by-step solution to solve this, I'd appreciate it so much!!!


Solution

  • Ensure that you have the main project declared as an Android library project, and that the demo/ sub-project has a reference to that Android library project.