如何删除Android的Studio中的一个模块 [英] How to delete a module in 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.
目前的(机器人工作室的 0.8.4 - 1.2.x版本)的方式来做到这一点是通过项目结构对话框。它可以通过文件 - >项目结构进行访问。或者通过右键单击一个模块并选择模块设置
The current (Android Studio 0.8.x - 1.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.
如果你愿意,你可以通过物理删除通过右键单击该文件,它和pressing删除。
If you want, you can then physically delete the files it by right-clicking on it and pressing "Delete".
这篇关于如何删除Android的Studio中的一个模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!