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

此生再无相见时 提交于 2020-01-03 07:38:57

问题


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!


回答1:


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




回答2:


sure, just use the project name when running Gradle, e.g. gradlew :api:build. This will build api module only.

More details in the docs.




回答3:


I face the same problem,search for Google,No answer direct question.

I find Android Studio Menu,find the method .

Run - > Clean and Rerun"modle name"



来源:https://stackoverflow.com/questions/26711263/rebuild-sync-gradle-and-clean-for-just-one-module-with-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!