How to make one AAR file, having some other AAR files

Could you help me understand the general concept of building an Android library and use it in a user application.

So, the following situation arises:

Android Studio has the following modules:
core
data
picture

and there is a module
application
with dependencies on the above modules.

app.gradle

dependencies { compile project(':core') compile project(':data') compile project(':drawing') } 

so I can run the application from Android Studio.

But I would like to have something like an AAR file and include it in any application in order to use it again without creating the same modules.

I am not very familiar with Gradle, so I'm not sure if this is possible and how to do it.

+5
source share
1 answer

From my experience, AAR is created for each library module.

The generated AAR created during build can be found in "yourmodule \ build \ output \ aar". (on Android Studio) You can use these AARs in other projects

+1
source

All Articles