idea 错误 Two modules in a project cannot share the same content root~2021-10-21

1.问题:Two modules in a project cannot share the same content root

2.原因:两个项目同时引用一个根目录文件导致的。

3.解决方法:找到Modules中路径相同的module删除一个即可

1.进入 Project structure

idea 错误 Two modules in a project cannot share the same content root~2021-10-21_第1张图片
2找到Modules中路径相同的module删除一个即可

idea 错误 Two modules in a project cannot share the same content root~2021-10-21_第2张图片

你可能感兴趣的:(intellij-idea,java,intellij,idea)