有办法删除一个模块在Android工作室? 当我右键单击一个模块,我找不到删除选项,是在其他地方吗?


当前回答

假设:

你正在使用Android Studio 1.2.1或1.2.2(我还没有最新的版本,当我这样做时,我会再次编辑它)。 您的项目工具窗口显示以下视图之一:“项目”,“包”,“Android”或“项目文件”

删除Android Studio模块的操作如下:

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.

其他回答

这是Android studio 2.3.3 我没有在文件菜单下找到任何项目结构。 这是图片中的步骤

编辑项目的设置。Gradle文件:删除模块名(,':xxxxx'),其中xxxxx是要删除的模块名 使用文件资源管理器删除模块文件夹

顺便说一下,当前版本的Android Studio (v3.1.2)抛出一个异常,并退出删除与一个错误,而我正在删除模块通过模块设置=>选定模块=> -(减)

最好的问候,谢谢)

设置。gradle[About]文件负责项目中的模块

从settings.gradle中删除<module_name>。它还可以包含projectDir设置 删除<module_name> build.gradle中的模块

implementation project(':<module_name>')

用Gradle文件同步项目

在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.

希望能有所帮助。 感谢。

正如我所看到的,在Android Studio 0.5.1中,你必须通过简单地执行File ->关闭项目来关闭项目,然后将鼠标移动到你想要删除的项目上,然后将鼠标保持在同一个项目上,然后按delete,然后单击“OK”按钮,这将从Android Studio中删除你的项目。