Reputation: 807
I have a project that is an Android Library. It uses two external jars (universal image loader and ksoap).
I need to create a jar from this project to distribute it, but when I do this and use this project, I always get a java.lang.NoClassDefFoundError, saying that the ksoap classes are not found.
When I open the jar file, I see the both jars included, but it seems that the final project does not see them.
How can I do this?
Thanks!
Upvotes: 1
Views: 69
Reputation:
Create a regular Java library and do the following steps:
For Android Studio, add the library uniquely in this way:
Add this on your build.gradle
.
dependencies {
compile files('libs/your-jar-library.jar')
}
For include these two external jars, you need to do following steps:
Upvotes: 1