有办法删除一个模块在Android工作室? 当我右键单击一个模块,我找不到删除选项,是在其他地方吗?
当前回答
在android-studio版本2中。就去
右键单击项目—>打开模块选项—>单击您的模块—>单击sign done然后按ok按钮。
其他回答
我发现的最可靠的方法是进入项目结构,从依赖项中删除它,从你的设置中删除它。gradle文件。
在他看来,它似乎被完全删除了,但事实并非如此。如果您尝试重新添加模块,它会说它已经存在于项目中。
最后一步是使用文件资源管理器等到项目的位置并删除模块。
在studio 1.3.1上100%的时间都是这样
假设:
你正在使用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.
删除文件>文件结构>依赖> -按钮。然后,如果它是静止的,你可以删除模块进入设置。Gradle文件,并从包含行中删除它。
设置。gradle[About]文件负责项目中的模块
从settings.gradle中删除<module_name>。它还可以包含projectDir设置 删除<module_name> build.gradle中的模块
implementation project(':<module_name>')
用Gradle文件同步项目
对于最新的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.
推荐文章
- 在Eclipse中更改字符串的大小写
- Android Studio突然无法解析符号
- Android Studio缺少必要的插件org.jetbrains.android
- 颤振插件未安装错误;当运行'扑动医生'时
- 如何在编辑器(Atom, notepad++, Kate, VIM, Sublime, Textpad等)和ide (NetBeans, IntelliJ IDEA, Eclipse, Visual Studio等)中选择列
- Android工作室如何运行gradle同步手动?
- 磁盘上不存在APK文件
- 模块是用不兼容的Kotlin版本编译的。其元数据的二进制版本为1.5.1,预期版本为1.1.15
- 如何在Android工作室添加“libs”文件夹?
- Android Webview给出net::ERR_CACHE_MISS消息
- Android Studio在创建新项目时卡住了Gradle下载
- 无法解析符号“AppCompatActivity”
- Manifest合并失败:uses-sdk:minSdkVersion 14
- 为什么Android工作室说“等待调试器”如果我不调试?
- Android Studio 3.0口味维度问题