Android Studio에서 모듈을 삭제하는 방법
Android Studio에서 모듈을 삭제하는 방법이 있습니까? 모듈을 마우스 오른쪽 버튼으로 클릭하면 삭제 옵션을 찾을 수 없습니다. 다른 곳입니까?
"제외 된 것으로 표시"옵션은 더 이상 존재하지 않습니다.
이를 수행하는 현재 (Android Studio 0.8.x-2.2.x ) 방법은 프로젝트 구조 대화 상자 를 통하는 것 입니다. "파일-> 프로젝트 구조"또는 모듈을 마우스 오른쪽 버튼으로 클릭하고 "모듈 설정"을 선택하여 액세스 할 수 있습니다.
그런 다음 모듈을 선택하고 "빼기"버튼을 클릭하여 제거하십시오.
디렉토리는 실제로 삭제되지 않았기 때문에 "프로젝트"보기 ( "Android"보기에는 없지만)에 계속 표시되지만 더 이상 모듈로 취급되지 않습니다.
원하는 경우 파일을 마우스 오른쪽 버튼으로 클릭하고 "삭제"를 눌러 파일을 물리적으로 삭제할 수 있습니다.
(편집자 주 :이 답변은 2013 년 5 월 Android Studio v0.1에서 정확했지만 언급 된 메뉴 옵션이 더 이상 존재하지 않으므로 2014 년 7 월부터 더 이상 정확하지 않습니다. 최신 대안 은 이 답변 을 참조하십시오. ) .
먼저 제외 된 것으로 표시해야합니다. 그런 다음 마우스 오른쪽 버튼을 클릭하면 프로젝트를 삭제할 수 있습니다.
Android Studio 1.0-1.1b4 에서 모듈을 제거하는 가장 쉬운 방법 인 것으로 나타났습니다.
열기
settings.gradle
Gradle을 스크립트에서 찾을include 문에서 모듈 이름 삭제
Gradle 파일과 프로젝트 동기화
선택적으로 프로젝트 폴더에서 수동으로 삭제하십시오.
예
낡은:
include ':app', ':greendao'
새로운:
include ':app'
Android Studio 0.5.1에서 파일-> 프로젝트 닫기를 수행하여 프로젝트를 닫은 다음 삭제하려는 프로젝트 위로 마우스를 옮긴 다음 동일한 프로젝트에서 마우스를 유지하고 삭제를 누른 다음 클릭하십시오. "확인"버튼을 누르면 Android Studio에서 프로젝트가 삭제됩니다.
Android Studio v1.0.2에서
방법 1
File -> Project Structure...
다음 그림과 같이 프로젝트 구조로 이동하여 -
아이콘을 클릭 하여 모듈을 제거하십시오.
방법 2
파일을 편집 settings.gradle
하고 삭제하려는 항목을 제거하십시오. 예를 들어 파일을에서 (으) include ':app', ':apple'
로 편집하십시오 include ':app'
.
대부분의 상황에서 작동하지만, 더 이상 필요하지 않으면 디스크에서 수동으로 모듈을 삭제해야합니다.
Here is for Android studio 2.3.3
I did not find any Project Structure under File
menu. So here are steps in pictures
I'm currently running the 0.5.8 version of Android Studio and I can't even find the "Mark folder as" option when I right click, what I do is:
Right click on project -> Click on Show in Explorer and then just delete it from there.
You can achieve the same result by deleting it directly through Windows Explorer. That's the only way I've been able to get rid of Projects I did not want anymore. Oh and of course, this also removes it from the hard disk.
Deleting is such a headache. I am posting the solution for Android Studio 1.0.2.
Step 1: Right click on the "Project Name" selected from the folder hierarchy like shown.
Note: It can also be deleted from the Commander View from right hand side of your window by right clicking the project name and selecting delete from the context menu.
Step 2: The project is deleted(seemingly) but gradle seems to keep the record of the project app folder(Check it by clcking on the Gradle View). Now go to File->Close Project.
Step 3: Now you are at the start window. Move the cursor on the in recent project list. Press Delete.
Step 4: Delete the folder from the explorer by moving or deleting it actually. This location is in your_user_name->Android Studio Projects->...
Step 5: Go back to the Android studio window and the project is gone for good. You can start a new project now.
edit the project's settings.gradle file: delete the module name (, ':xxxxx') where xxxxx is the module name to be deleted
using the file explorer delete the module folder
by the way, the current version of the Android Studio (v3.1.2) throws an exception and exits the removing with an error while I'm removing the module through Module Settings => selected module => - (minus)
Best Regards, thanks)
The most reliable way I have found to do this it to go to project structure and remove it from dependencies and remove it from your setting.gradle file.
It will appear as if it is fully deleted at his point but it is not. If you try to re add the module it will say that it already exist in the project.
The final step is to go to the location of your project using file explorer etc and delete the module.
This work 100% of the time on studio 1.3.1
Assuming the following:
- You are working with Android Studio 1.2.1 or 1.2.2 (I don't have the latest yet, will edit this again when I do).
- Your Project Tool Window is displaying one of the following views: "Project", "Packages", "Android" or "Project Files"
You can delete an Android Studio module as follows:
- In the Project Tool Window click the module you want to delete.
- Between the Tool Bar and the Project Tool Window the tool bar you will see two "chips" that represent the path to the selected module, similar to: your-project-name > selected-module-name
- Right click on the selected-module-name chip. A context menu with multiple sections will appear. In the third section from the bottom there will be a section that contains "Reformat Code..", "Optimize Imports..." and "Delete".
- Select "Delete" and follow any prompts.
In android-studio version 2. just go
Right Click on Project
-->Open Module Option
-->Click Your Module
--> click sign done
then press ok
button.
Steps to follow Remove Modules in Android Studio:3.1.4.
- Goto Project-->Right Click on Module (FolderIcon-GreywithGreenColorDot) -->Load/UnLoadModules in PopUp -->Select Which Module to Unload in PopUpWindow
- Again RightClick on Module (FolderIcon-OrangeColor) -->Remove module.
Finally, RightClick again on Module (FolderIcon-GreyColor) -->Delete.
Note:Incase Project Enabled with Git please remove module from settings.gradle, otherwise deleted module.iml will show in project module list(Reference Link).gradle.xml which is located in project/.idea/gradle.xml--remove a module from here.
Hope it helps. Thank-you.
After doing what's referred in [this answer]: https://stackoverflow.com/a/24592192/82788
Select the module(since it's still visible on the Project view),pressing Delete button on the keyboard can delete this module on disk.(Before doing what's referred in that answer, the Delete button has no effect.)
Remove from File > File Structure > Dependencies > - button. Then if it is stull there you can remove the module by going to the settings.gradle file and removing it from the include line.
To delete a module in Android Studio 2.3.3
,
- Open
File -> Project Structure
- On
Project Structure
window, list of modules of the current project gets displayed on left panel. Select the module which needs to be deleted. - Then click
-
button on top left, that means just above left panel.
참고URL : https://stackoverflow.com/questions/16710290/how-to-delete-a-module-in-android-studio
'Programming' 카테고리의 다른 글
실제 터미널 화면 지우기 (0) | 2020.02.28 |
---|---|
기존 Docker 컨테이너에 포트 매핑을 어떻게 할당합니까? (0) | 2020.02.28 |
Bash의 경로 문자열에서 파일 접미사와 경로 부분을 어떻게 제거합니까? (0) | 2020.02.28 |
공개적으로 보이는 유형 또는 멤버에 대한 XML 주석이 누락되었습니다. (0) | 2020.02.28 |
우분투 12.04의 nodejs와 node (0) | 2020.02.28 |