如何在 Android Studio 中删除模块
有没有办法删除 Android Studio 中的模块?当我右键单击某个模块时,我找不到删除选项,是在其他地方吗?
Is there a way to delete a module within Android Studio? When I right click on a module I can't find an option for deletion, is it elsewhere?
标记为排除"选项不再存在.
The "Mark as Excluded" option isn't there anymore.
当前 (Android Studio 0.8.x - 2.2.x) 执行此操作的方法是通过 项目结构 对话框.可以通过文件 -> 项目结构"或右键单击模块并选择模块设置"来访问它.
The current (Android Studio 0.8.x - 2.2.x) way to do this is via the Project Structure dialog. It can be accessed via "File -> Project Structure" or by right-clicking on a Module and selecting "Module Settings".
然后选择模块,然后单击减号"按钮将其删除.
Then select the module, and click the "minus" button to remove it.
该目录在项目"视图中仍然可见(虽然不在Android"视图中),因为它实际上并未被删除,但将不再被视为模块.
The directory will still be visible in the "Project" view (though not in the "Android" view) since it's not actually deleted, but it will no longer be treated as a module.
如果需要,您可以通过右键单击文件并按删除"来物理删除它.
If you want, you can then physically delete the files it by right-clicking on it and pressing "Delete".