Two modules in a project cannot share the same content root

  idea的Project Structur -> Modules 对 module 进行修改点击应用或保存时出现问题,报下图的错误:

Content root "xx" is defined for modules "xx" and "xx". Two modules in a project cannot share the same content root.

   解决办法:将“my-project_main"或”spring-framework-5.0.x-my-project_main"中选择一个进行删除,只保留一个就可以。

  PS:网上的“先删除全部依赖(Libraries和Modules中的Dependencies),再一次添加依赖”该操作无法解决问题

posted @ 2021-04-15 22:47  码猿手  阅读(2136)  评论(0编辑  收藏  举报
Live2D