NoClassDefFoundError on external library project for Android
It has been clearly stated in offcial API here:
A library project can include a JAR library
You can develop a library project that itself includes a JAR library, however you need to manually edit the dependent application project's build path and add a path to the JAR file
The jar lib must be manually added to the dependent application project's build path, not only the library project build path itself.
Update from SDK r17:
This is automatically handled by ADT now, check out new feature for ADT 17.0.0 release here:
Added feature to automatically setup JAR dependencies. Any .jar files in the /libs folder are added to the build configuration (similar to how the Ant build system works). Also, .jar files needed by library projects are also automatically added to projects that depend on those library projects. (more info)
java.lang.NoClassDefFoundError with external jars in Android project
Make sure you've updated to the latest version of ADT Eclipse plugin and SDK Tools and also make sure "Android Dependencies" is checked in your project properties.
ClassDefNotFound exception using android library project as reference
I think your activity EZImageActivity is declared in liberary manifest.Actual case androidManifest.xml merging is supported in version 20 of the ADT tools.
Enable with the manifestmerger.enabled property.
more details
Android Eclipse NoClassDefFoundError for external .jar files
You need to read this - Dealing with dependencies in Android projects.
This link is also useful - ClassDefNotFoundError with ADT 17
Basically, create a folder called libs
and place all of your jar
files inside. The recent update will automatically take care of the rest for you. You don't need to edit your path anymore.
Related Topics
Online Radio Streaming App for Android
Setting a Spinner Onclicklistener() in Android
Listview Viewholder Checkbox State
Sqliteopenhelper Failing to Call Oncreate
Android Webview Always Returns Null for JavaScript Getelementbyid on Loadurl
Aes Gcm Implementation with Authentication Tag in Java
Fixing 'Path' in Environment Variables in Windows 7 for Multiple Applications
Spark Error - Unsupported Class File Major Version
Transformexception Duplicate Entry for Common.Annotations.Beta
What Is the Simplest Way to Reverse an Arraylist
How to Detect a Click in an Ontouch Listener
Caused By: Java.Lang.Classnotfoundexception: Didn't Find Class in Firebase Phone Authentication