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


当前回答

删除文件>文件结构>依赖> -按钮。然后,如果它是静止的,你可以删除模块进入设置。Gradle文件,并从包含行中删除它。

其他回答

在android-studio版本2中。就去

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

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

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

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

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

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

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

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

我目前正在运行0.5.8版本的Android Studio,当我右键单击时,我甚至找不到“标记文件夹为”选项,我所做的是:

右键单击项目->在资源管理器中单击显示,然后删除它。

你可以通过Windows资源管理器直接删除它来达到同样的效果。这是我摆脱我不再想要的项目的唯一方法。哦,当然,这也将它从硬盘中移除。

假设:

你正在使用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.