Android Studio does not create aar release, only debug

I have a project in Android Studio with three libraries. I am creating a set of shared libraries used in several other projects. Everything works fine except for the build process.

I have three of library modules: tools, databaseand core.

If I install the build option for debugging, I get the corresponding files in the build / output / aar folder:

tools-debug.aar
database-debug.aar
core-debug.aar

When I install the build option for release, however, I get

tools-release.aar
database-release.aar

No core-release.aar.

The only way to generate it is to open the Gradle slider on the right side and manually run the assemblyRelease command.

I compared all Gradle files and all other files that I can find, and they are all identical between the three libraries. Any ideas would be appreciated.

+4

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


All Articles