项目已包含具有此名称的模块 -- Android Studio [英] Project already contains module with this name -- Android Studio
问题描述
我在 Android Studio
的应用程序项目中成功导入了一个 Module
.然后我通过以下链接删除或删除了模块:
I had successfully imported a Module
in my Application project in Android Studio
.
Then I deleted or removed the module by following the below link:
我还从我的 build.gradle(app)
文件的 dependencies
中删除了项目模块.
I also removed the project module from the dependencies
of my build.gradle(app)
file.
现在,当我需要在我的 Andorid 应用程序中再次包含相同的模块项目时,它不允许我,并给出 项目已经包含具有相同名称的模块
错误.
Now, When I need to again include the same module project in my Andorid Application, it doesn't allows me, and gives the Project already contains module with the same name
error.
我已经检查了我的 Project、Package、Android
结构,但是我需要导入并添加为模块项目的项目模块不存在,但它仍然说它已经存在.
I had check in my Project, Package, Android
Structure but the project module which i need to Import and add as a Module Project is not there but still it say it already exist.
谁能帮我解决这个问题.??
Can anyone help me to overcome this issue.??
推荐答案
如果有人遇到这个问题,除了删除包含旧模块的文件夹之外,还要从 settings.gradleremovecode> 文件对应于旧模块的行:
include ':youroldmodule'
.如果您不手动删除该行,则在尝试添加模块依赖项时会出现 2 个同名的模块.
If somebody faces this issue, except removing the Folder containing the old module also remove from the settings.gradle
file the line corresponding to the old module: include ':youroldmodule'
. If you dont remove that line manually, 2 modules with the same name will appear when trying to add module dependency.
这篇关于项目已包含具有此名称的模块 -- Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!