Add and remove Android Studio Module

Source: Internet
Author: User

1. Add module (at this point can be literally translated as "module", paraphrase "other works")

2. Delete Module

You know, the non-human design of Android studio, resulting in the removal of a module is cumbersome.

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 and the right button will find no delete.

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.

2.1 Step 1 Remove the module association method for a project 1

File----and actions in execution

The disadvantage of this method is that the file for this project cannot be deleted on disk.

Edit Settings.gradle

Edit the Settings.gradleto remove the useless include

2.2 Step 2 Delete the file contents of the "module" located in this project file directory

After performing this step, the Delete button is out. This time you will find the app that the icon on the small phone is not changed, meaning is removed from the module list, not removed is still no delete button of the ha.

Note: The Delete button on this side must be cautious ah, you this is deleted on the deleted, the hard disk is also deleted.

Reference articles

1. How Android Studio removes module

Add and remove Android Studio 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.