Building Individual Libraries Through the Android Studio UI

I’m currently experimenting with Android Studio for a project that consists of multiple independent Android Library modules that internally use Kotlin, CMake and C++ code.

MyProject

-------------------------

app

Library1

Library2

Library3

-------------------------

Each library/module:

  • has its own build.gradle
  • has its own CMakeLists.txt
  • may have dependencies on other libraries/modules

What I would like to achieve is a simple UI-driven workflow inside Android Studio where a developer can select a particular library and build only that library.

Something conceptually like:

Libraries

--------------------

Library 1

Library 2

Library 3

--------------------

[BUILD]

--------------------

or through some existing Android Studio tool window/menu option that allows building individual libraries/modules.

Currently, I can invoke Gradle Tasks such as ‘:Library1:build’ from the terminal, which works fine.