How Android studio removes module

Source: Internet
Author: User

(the original article link http://blog.csdn.net/hyr83960944/article/details/37519299 written by the author very well, so I only modified some wording)

When you want to delete a module in Android studio, it's customary to select the module you want to delete and right-click to find the delete. But

In Android Studio you select module, right-click to find no delete,

Why there is no delete button, unscientific Ah, is not the bug in Android studio or the design team is poorly considered. Actually, there's no Delete button. The main reason is because Android Studio has a protection mechanism for module, is a module you can not be arbitrarily deleted, to delete you must first remove the module from the module list.

There are two ways to remove:

1, we click on the menu just shown open module Setting (F12) Select the module you want to remove, and then press the red '-' button, this is only to remove the module from the module list, and not on the Android Removed from the studio directory structure:

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. Again, this still does not delete the item in the As directory structure.

After performing this step, the Delete button is out,

At this point you will find that the little phone on the app icon is gone, meaning it was removed from the module list.

Note: The data in the hard drive will be deleted after delete, please be careful.

How Android studio removes module

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.