I have created simple app to test the scenario which is failing with NoClassDefFoundError
.
Lets take for example i have Test1 android project with Class TestClass with some methods.
This Test1 project i exported as a test1.jar and exported only source folder with Class TestClass and classpath
and .project
files.
In another android project Test2 i added this test1.jar
in my libs folder. And in this Test2 project i have a class Test2Class which calls methods of test1.jar class.
After this i exported this Test2 project as test2.jar
file following above steps.
So when i use this test2.jar
in another project i get this above error NoClassDefFoundError
. It is the scenario of jar inside a jar.
Is anywhere should i do something so i am able to access a jar inside a jar.
Thanks in advance.