Android Studio Add module that has already been removed

Source: Internet
Author: User

When Android Studio removes the module, it needs to be removed by clicking "-" in project structure, when the small phone icon disappears, but this time the module is not deleted from the hard drive, it is just out of the relationship with project. If this is the time to find that the module is not deleted, what should I do to build a relationship with Project again? This experience hopes to help you! PS: Actually removing the module is good, so you don't have to load so many module at Gradle, you can speed it up, similar to closing a project in Eclipse.

Method/Step
    1. , only the three module actionbartest, Billcalculator, and MyApplication are associated with project because the three module has a small phone icon, Now we re-establish the app module with project.

    2. Double-click Project's Settings.gradle, and you'll see the three module that has a relationship with project just now.

    3. Enter include ': Module_name ', where Module_name is the name of the module you want to connect to, and then synchronize (sync). Note that the ":" cannot be omitted, and you can click on "Sync Now" in the upper-right corner, or you can synchronize by File->synchronize.

Android Studio Add module that has already been removed

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.