Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In android studio is there a way to disable a module without deleting it?

I have several modules in a project in android studio. Sometimes when there are compiler errors etc I want to disable other modules so that only certain modules are compiled for example I want to only focus on independent libraries etc and want their dependent modules to be unloaded/not included in the compile etc.

How can I do that ? I know there is a way to delete them but I don't want them deleted. Just like in visual studio or eclipse we could unload certain projects in a work space.

like image 637
Ahmed Avatar asked Dec 14 '22 10:12

Ahmed


1 Answers

in order to disable the module you should follow these steps

  • in the settings.gradle remove the library from include
  • also remove the using of it from build.gradle
like image 170
Ahmad Nasser Avatar answered Apr 30 '23 13:04

Ahmad Nasser