My Android project references external classfiles that are not included in the in the Android SDK. I added those classes as an external library properly in eclipse. The code compiles with no problem. But as I try to run the application I get an ClassNotFoundException by the DalvikVM, although all the neccessary classes have been ported.
Am I missing something?
The steps I did.
- create new folder in eclipse android project.
- copy neccessary classes in this folder.
- add the folder to the classpath via eclipse.
- programm
- compile
- run as android application
- --> Exception
EDIT:
I tried to add the external jar now. I get the following errors when eclipse is rebuilding the build path:
"warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)"
That comes for every class file in the jar apparently.
and: "Dex Loader]Unable to execute dex: null" and: "Conversion to Dalvik format failed: Unable to execute dex: null"