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


当前回答

步骤1:右键单击项目>打开模块选项

步骤2: 点击你的模块——>点击(-)在弹出窗口左上角签署完成,然后按确定按钮。

步骤3:从项目中移除模块后

步骤4:再次在项目中单击右键,选择删除菜单,从磁盘空间(即文件夹)删除整个内容。

步骤5:通过单击done从磁盘删除模块的内容。

其他回答

在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版本2中。就去

右键单击项目—>打开模块选项—>单击您的模块—>单击sign done然后按ok按钮。

(编者注:这个答案在2013年5月的Android Studio v0.1中是正确的,但在2014年7月不再准确,因为提到的菜单选项已经不存在了——请参阅最新的替代答案)。

首先你得把它标记为排除。 然后右键单击,就可以删除项目了。

在Android studio v1.0.2中

方法1

进入项目结构,文件->项目结构…,如下图所示,单击-图标可移除模块。

方法2

编辑文件设置。Gradle并删除要删除的条目。例如,将文件从包含“:app”,“:apple”编辑为包含“:app”。

这在大多数情况下都是可行的,但是最后如果你不再需要它,你必须手动从磁盘中删除它。

对于最新的Android Studio版本,删除Android Studio中的一个模块:

1. Open File -> Project Structure
2. Choose the Modules section from the left column.
3. In the right panel opened ,select the module you want to delete.
4. After selecting the module tap the (-) icon on the top to delete the respective module.