I have a master gradle script with over 30 sub projects. This all works fine at the command line. I’ve imported the project into Android Studio and it all looks good when I want to build or test everything. However if I want to for instance run the tests on a single sub project, the task is run on all projects. Which not only takes a long time, but really gets in the way of testing/debugging the project that I’m interested in.
Is there a way to invoke a Gradle task on a single sub-project from within Android Studio?