I created a simple script testing application that fails with NoClassDefFoundError
.
Let's take, for example, the Test1 android project with the TestClass class with some methods. I exported this Test1 project as test1.jar and exported only the source folder with Class TestClass and classpath
and. project
.
In another Android Test2 project, I added this test1.jar
to my libs folder. And in this Test2 project, I have a Test2Class class that calls the methods of the test1.jar class.
After that, I exported this Test2 project as a test2.jar
file, following the steps.
Therefore, when I use this test2.jar
in another project, I get this error above NoClassDefFoundError
. This is a scenario of a can in a bank.
Somewhere I have to do something so that I can access the bank inside the bank.
Thanks in advance.
source share