How to add a module dependency while building an AAR

544 views Asked by At

I created one library project with two modules. I added the 2nd module in the dependencies of the first module like this:

    implementation project(":module2")

I am able to generate the AAR file after this. But I'm getting

java.lang.NoClassDefFoundError

while running the client app.

Kindly help me find out what I am missing here.

1

There are 1 answers

0
Mofajjal Hossain Arafath On
  • In your first module build.gradle file, you can include like ,

    api project(":module2")