有办法删除一个模块在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中。就去

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

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

要在Android Studio 2.3.3中删除一个模块,

打开文件->项目结构 在项目结构窗口中,当前项目的模块列表显示在左侧面板上。选择需要删除的模块。 然后点击左上角的按钮,这意味着左上方的面板。

在Android studio v1.0.2中

方法1

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

方法2

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

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

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

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

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