Android Studio release build does not output aar

Abdalla picture Abdalla · Oct 31, 2016 · Viewed 12.3k times · Source

I have create a very simple 'Android Library' module with only one class which builds fine in debug releasing build/output/library-debug.aar

But, when I switch to release, even though it says build successful, the aar is not there.

The Android Studio project only has this library module.

Thanks for advance.

Answer

Abdalla picture Abdalla · Oct 31, 2016

To get the aar, you can do the following

1) “View/Tool Windows/Gradle”, to open the gradle window

2) From gradle window, run assembly Gradle task by double-click on My_Plugin_Android/:My_Plugin/Tasks/build/assemble

Then the release and debug aars are outputed.