First, remove the module in Android Studio
When you want to delete a module in Android studio, select module in Android Studio, right-click to find no delete,
Android Studio has a protection mechanism for module, module is not arbitrarily deleted, to delete must first removed from the module list.
There are two ways to remove:
1, the File menu under Project Structure ..., select the module you want to remove, and then press the red '-' button, this time is only deleted in the Android studio directory structure, and not removed from the hard drive, if this module does not want, You can delete the corresponding project folder in the project directory.
2, direct editing settings.gradle, of course, this method is not very recommended, because sometimes you will find that you finished editing, point sync gradle (circled in the picture), of course, there will be automatic sync, will always be in Gradle sync State, This is actually the problem of the network.
Second, restore module
1. If you delete the module on the disk in the project directory, you need to import the module again
File-New->import Module Select the module directory for import
2. If you just removed the module from project structure under the File menu, follow these steps:
This scene is still a lot of see, such as I removed the module app, but later I want to use this module, to restore the words, very simple, see, edit Settings.gradle can, of course, the module name must be and you remove the module name to be consistent, When you're done editing, remember to click the Sycn gradle button.
Removing module and Recovery module in Android Studio