Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rebuild, Sync Gradle and Clean for just one Module with Android Studio

I have in Android Studio a complex project establish by five modules. Four of them act as independent apps, but one of them is the base code for the rest. This way, I can have a big common core and four separates codes for every app (these apps share the shame model data and api connection).

My question is if it is possible rebuilding, cleaning or syncing just for one module, non the entire project in Android Studio.

Thanks!

like image 921
Víctor Albertos Avatar asked Nov 03 '14 09:11

Víctor Albertos


People also ask

How do I reset Gradle sync?

Open your gradle. properties file in Android Studio. Restart Android Studio for your changes to take effect. Click Sync Project with Gradle Files to sync your project.

How do you clean Gradlew?

To clear your gradle cache in android studio: open terminal and. run gradlew clean. conclusions: caching of all normal Android builder tasks is handled by Gradle.


2 Answers

Nowadays with Android Studio you can use build -> make module “nameModule”

enter image description here

like image 69
Víctor Albertos Avatar answered Oct 16 '22 12:10

Víctor Albertos


For the addition the all of answer you can type a specific gradle task instead:

https://www.jetbrains.com/help/idea/work-with-gradle-tasks.html#gradle_tool_bar

enter image description here

In my case, Press ^ (macOS) twice -> Type gradle :your-specific-dfm:build

like image 43
mochadwi Avatar answered Oct 16 '22 10:10

mochadwi