tree-view-list-android
tree-view-list-android copied to clipboard
NoClassDefFoundError when building demo app with Eclipse
trafficstars
Steps to reproduce:
- Use Eclipse Luna with ADT 23.0.6
- Open a new workspace
- Import the project as "Android Project from Existing Code"
- Run it as an Android Application
The app will build and launch, but immediately crash with a NoClassDefFoundError.
I have encountered this before in a different project, where changing the Java compiler compliance level from 1.6 to 1.7 solved it. The same approach works here, but requires targeting Android 4.4 (API 19), else the toolchain will complain.
Steps in detail:
- Go to Project Properties
- In Android, choose Android 4.4.2 (API 19) as the build target.
- In Java Compiler, set the compiler compliance level to 1.7.
With these, I was able to build and run the demo app.