Android Studio enable disable module

Deactivate – disable module in project in Android Studio – here

How to enable module in project?

  • Open Settings.gradle file in project tree
  • Put your disabled module name into include line

For example: your disabled module have name animationsDemo
Write behind include ‘:animationsDemo’
If Settings.gradle contain more modules names, put your module name with comma
‘:animationsDemo’, ‘:latestModuleName’
latestModuleName is without a comma at the end.

Settings.gradle example

include ':animationsDemo', ':app', ':mysearchview', ':library_studio', ':latestModuleName'

Save Settings.gradle
or
Wait up for autosave and auto Sync project
or
Try to debug module – it seems faster than Sync project with gradle files.
Check for errors.

This entry was posted in Android Studio. Bookmark the permalink.


Comments are closed.



2,686 views