What I want
I want to generate a jar out of my library project(this project uses gson in gradle)
What I'm doing
I've created a library module which uses Gson library. Gson library is added in build.gradle of the library module. I'm generating .aar file using gradle build
command.Then I extracted the aar archive and copied classes.jar file to a new project's libs folder. When I try to call a method of library class which used Gson, it gives a runtime error, ClassNotFoundException.
Looks like the Gson class is not bundled with the jar. I'm not sure how to fix this. I've also tried to use gson jar in the library module instead of adding gradle dependency. I don't want to publish library to maven repository, I just want the jar file.