How to make aar in an Android studio

Asked 2 years ago, Updated 2 years ago, 53 views

I want to use my project as a library on Android, so I want to make it aar... How can we do that?

android android-studio

2022-09-22 22:05

1 Answers

First, go into the build.gradle of the project The plugin on the top is 'com.Change to 'android.library'. Then delete the applicationId of the defaultConfig.

If you look to the right of Android Studio, there's a tab called Gradle. Press that and press Excute Gradle Task.

There's a dialog called Run Gradle Task on the command line Type assemblyRelease and press OK.

This will show you that the build has been completed after the build process. If you go to the project folder and go to build/outputs/aar/, you will find a file named-release.aar.


2022-09-22 22:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.