Content root _F xxproj src_ is defined for modules _module_1_ and _mo MapleDev 2019-09-12 768 阅读1分钟 懒癌发作,好久没更。Java后台遇到的问题记录下 Content root "F:\xxproj\src" is defined for modules "module_1" and "module_2". Two modules in a project cannot share the same content root. 从 eclipse 导入至 Idea 中时报错。网上搜索都是抄来抄去,说啥 IJ报错解决方法: 移除以前工程的JDK包. 根本的解决方法: 删除面板中所有的内容, 包括iml文件和JDK包, 然后重新导入工程. 其实删了没用的iml重启下idea就可以 我试了P的没用。仔细观察了下 Project Structure,发现红线区还有之前项目的目录,怒删之,OJBK。