Rebuild, sync Gradle and clear only one module with Android Studio

In Android Studio, a complex project is installed by five modules. Four of them act as independent applications, but one of them is the basic code for the rest. Thus, I can have a large common core and four separate codes for each application (these applications share the data of the shame model and the api connections).

My question is whether it is possible to restore, clean or synchronize only one module, and not the entire project in Android Studio.

Thanks!

+8
android module android-studio compilation project
source share
3 answers

Currently with Android Studio you can use the build module -> make "nameModule"

enter image description here

+7
source share

sure, just use the project name when starting Gradle, for example. gradlew :api:build . This will be the api module only.

More details in the docs .

+1
source share

I am facing the same problem when searching Google, there is no direct answer to the question.

I find the Android Studio Menu, I find the method.

RunClean and Rerun"modle name"

enter image description here

0
source share

All Articles