Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio release build does not output aar

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.

like image 612
Abdalla Avatar asked Oct 31 '16 12:10

Abdalla


People also ask

How do I unpack an .AAR file?

In android studio, open the Project Files view. Find the . aar file and double click, choose "arhcive" from the 'open with' list that pops up. This will open a window in android studio with all the files, including the classes, manifest, etc.

What is .AAR file in android studio?

An AAR file contains a software library used for developing Android apps. It is structurally similar to an . APK file (Android Package), but it allows a developer to store a reusable component that can be used across multiple different apps.


1 Answers

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.

like image 65
Abdalla Avatar answered Sep 23 '22 00:09

Abdalla