Module “*” must not contain source root *. The root already belongs to module “*”.

一般是因为项目存在多个模块,且模块之间有包含关系

解决:打开Project Structure===》modeles ===》将非项目名的model删除===》OK===》重新运行

猜你喜欢

转载自blog.csdn.net/qq_26582185/article/details/81664920