Android Studio release build does not output aar
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.
How to create new Android AAR in Android Studio
After days of unsuccessful head-banging with the IDE, I found an astoundingly simple solution in some Google results, namely:
- Manually edit project/app/build.gradle
- Change apply plugin: 'com.android.application' to apply plugin: 'com.android.library'
- Remove the line specifying applicationId.
- Build->Clean Project and Build->Rebuild Project.
Voila! New library app-debug.aar appears in project/app/build/outputs/aar/
I don't know where the name app-debug came from, but you can rename it afterwards if you like.
UPDATE 7/2/18
I omitted precursor steps to this procedure. They are
1. Create a base project however you normally do.
2. Delete classes and other stuff you don't need in the aar.
3. Follow the steps above.
Why won't Android Studio create my AAR file in release mode
Right click the task you want and click "Run".
Related Topics
Parsing Date/Time to Localtimezone
Firebase Servervalue.Timestamp in Java Data Models Objects
Android: HTML in Textview with Link Clickable
Borders on Certain Zoom Levels on Webpage
How to Add Network_Security_Config.Xml to Manifest in Expo App Without Ejecting
Call Recorder Not Working in Android 10 (Q)
Android Listview Child View Setenabled() and Setclickable() Do Nothing
Android Stream Video from Google Drive
Open Google Maps Through Intent for Specific Location in Android
Gradle Dsl Method Not Found: 'Implementation()'
How to Get Android Avd Name from Adb Device Name
What Is Metadata ? and What Is The Use of It in Android
Fcm (Firebase Cloud Messaging) How to Send to All Phones
Eclipse Hangs at The Android Sdk Content Loader
How to Add a Button at The End of Recyclerview
Input Elements on Android 4.X Can Not Be Styled When Focused