idea报错Module Project1 must not contain source root "...\Project1\src". The root already belongs to .

  • idea报错Module Project1 must not contain source root “…\Project1\src”. The root already belongs to m
    在这里插入图片描述
    选择你的根模块
    在这里插入图片描述
    选择modules,选择根模块,删除add content root 下面不直接属于根模块的目录即可。

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_40816738/article/details/90171456