AndroidEnthusiast AndroidEnthusiast - 4 months ago 50
Android Question

Create aar file in Android Studio

I'd like to create an aar file for my library in Android Studio, i would've gone with a jar option but my library has resources.

Any idea how to create an aar file from a library?


If your library is set up as an Android library (i.e. it uses the apply plugin: '' statement in its build.gradle file), it will output an .aar when it's built. It will show up in the build/outputs/aar/ directory in your module's directory.

You can choose the "Android Library" type in File > New Module to create a new Android Library.