Why Android Studio will not create my AAR file in release mode

Using Android Studio, I have an Android library project that gives "library / build / output / aar / MyLIB.aar" is just fine in debug mode, but doesn't in Release mode. I see no BUILD SUCCESSFUL errors in the Gradle Console window, but no release mode artifact.

A similar question has arisen here , and I get the same behavior as # user1624552 mentions in the link:

"gradlew clean" followed by "gradlew aR" resultd in my AAR, created and correctly placed in the directory above. But using Android Studio and Build Variant Release Mode does not create an AAR file.

Is there anything configured in the Debug variant that is not configured in the Release variant?

Thanks ALF

+4
source share
2 answers

Right-click the desired task and click Run.

enter image description here

+3
source

To get aar, you can do the following

  • " View/Tool Windows/Gradle" to open the gradle window

  • In the gradle window, run the gradle build task by double-clicking My_Plugin_Android/:My_Plugin/Tasks/build/assemble

+1
source

Source: https://habr.com/ru/post/1619123/


All Articles