Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove an imported module in Android Studio

I am new to Android Studio, so please go easy on the lingo and navigation. I did File -> New -> Import Module and imported what I believe was an Android library project. I don't know how to find which modules I have imported or where to go to remove them.

like image 424
user1086516 Avatar asked Mar 14 '16 00:03

user1086516


People also ask

How do I remove a library from Android Studio?

Go to File > Project Structure > Select the module in modules and press minus(-) on the top left. This will remove the library but you will have to manually remove the files form your project . this link will help you in better understanding.

How do I delete a module File?

It can be accessed via "File -> Project Structure" or by right-clicking on a Module and selecting "Module Settings". Then select the module, and click the "minus" button to remove it.


4 Answers

AS OF AS-2.2: Remove the compile dependency from Build -> Edit Libraries And Dependencies. That will not remove the module itself from the project folder. To completely remove the module, you should remove it from settings.gradle file.

like image 151
Ankit Mundada Avatar answered Sep 28 '22 01:09

Ankit Mundada


You can go File > File Structure > Dependencies and then select the module that you want to delete and click on "-"

Also you can go there browsing : Right click on your project > Open Module Settings

If you can see it on the left of your IDE as a module the thing that you can do is Mark directory as excluded and then delete it right clicking on it.

like image 41
Skizo-ozᴉʞS Avatar answered Oct 20 '22 05:10

Skizo-ozᴉʞS


Click on the project tab on the left side of the screen, click on the project section header which will drop down a list and choose Project. Find the folder you imported and select it and hit your delete key. Open settings.gradle find the line that is similar to : include ':app', ':modulenameyouchooseduringimport' and delete the ,':modulenameyouchooseduringimport' Then go to Build -> Clean Project

like image 17
user1086516 Avatar answered Oct 20 '22 05:10

user1086516


You can find it in:

File --> Project Structrues --> Modules --> Dependency

from the GUI, you can find a lot more stuffs with modules.

like image 9
T D Nguyen Avatar answered Oct 20 '22 04:10

T D Nguyen