Two modules in a project cannot share the same content root.

时间:2024-03-24 08:29:45

Content root is defined for modules “xxx” and “xxx”. Two modules in a project cannot share the same content root.

  1. 错误
    Two modules in a project cannot share the same content root.
    这个错误是怎么解决的:

  2. 先将之前添加在这个项目中的依赖全部删掉

Two modules in a project cannot share the same content root.
Two modules in a project cannot share the same content root.

  1. 然后再重新添加就好了,哈哈哈;
  2. 其实还有一个添加jar包的简单方法;
    Two modules in a project cannot share the same content root.