Content root "F:\xxproj\src" is defined for modules "module_1" and "module_2". Two modules in a p...

懒癌发作,好久没更。开始学习后台了,有些问题记录下

  1. 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.


    Content root
    Cannot Save Settings.png

    从 eclipse 导入至 Idea 中时报错。网上搜索都是抄来抄去,说啥

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

我试了P的没用。仔细观察了下 Project Structure,发现红线区还有之前项目的目录,怒删之,OJBK。


Content root
Project Structure.png

你可能感兴趣的:(Content root "F:\xxproj\src" is defined for modules "module_1" and "module_2". Two modules in a p...)