项目已经包含具有该名称的模块-Android Studio [英] Project already contains module with this name -- Android Studio

查看:645
本文介绍了项目已经包含具有该名称的模块-Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Android Studio的Application项目中成功导入了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:

如何在Android Studio中删除模块

我还从build.gradle(app)文件的dependencies中删除了项目模块.

I also removed the project module from the dependencies of my build.gradle(app) file.

现在,当我需要在我的Andorid应用程序中再次包含相同的模块项目时,它不允许我运行,并出现Project already contains module with the same name错误.

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.gradle文件中删除对应的行旧模块:include ':youroldmodule'.如果您不手动删除该行,则在尝试添加模块依赖项时将出现两个具有相同名称的模块.

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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆