Java – NoClassDefFoundError, Android lib project

I create library project in eclipse – LibProject1.
Than I create library project – LibProject2 that use LibProject1.
Than I create Android App that use LibProject2.

If I add LibProject2 to Android App like: right click -> properties -> Android -> Add -> add LibProject2. App runs without errors.

I want to create jar file for LibProject2 that contains LibProject1 and add jar to Android App.

I do:
LibProject2 -> right click -> Export -> Java -> JAR file -> finish.
When i run app i get NoClassDefFoundError, no found LibProject1 class.
In JD-GUI i see that LibProject2 contains LibProject1.
Where is a problem? Thx.

Source: eclipse

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.