0

I want to export android library project including couple of jar files inside "libs" folder as a jar file and put it in other android application project.

The problem is, when I include generated jar file in other android application project, it doesn't see jar files from android library project and throws NoClassDefFoundError.

Is there any way to fix it ?

Szymon
  • 42,577
  • 16
  • 96
  • 114
bizon
  • 125
  • 3
  • 10
  • Why dont you just add the other jars to the new project? Possible same question http://stackoverflow.com/questions/16422892/how-to-export-a-jar-file-including-my-classes-and-other-jar-files-extracted-us – Joakim Palmkvist Nov 18 '13 at 19:44

1 Answers1

-1

I see one of the following reasons :

  • There could be few other classes which your jars(in libs) are referencing.
  • When you add your project jar to another project, the classes are being loaded by separate classloaders.

The stacktrace would make it clear. You can follow this to debug the NoClassDefFoundError

Crickcoder
  • 2,135
  • 4
  • 22
  • 36