Two modules in a project cannot share the same content root IJ报错解决方法: 移除以前工程的JDK包. 根本的解决方法: 删除面板中所有的内容, 包括iml文件和JDK包, 然后重新导入工程. 其实删了没用的iml重启下idea就可以