Removing module and Recovery module in Android Studio

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.