天天看點

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

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.Content root is defined for modules “xxx” and “xxx”. Two modules in a project cannot share the same content root.
    這個錯誤是怎麼解決的:
  2. 先将之前添加在這個項目中的依賴全部删掉
Two modules in a project cannot share the same content root.Content root is defined for modules “xxx” and “xxx”. Two modules in a project cannot share the same content root.
Two modules in a project cannot share the same content root.Content root is defined for modules “xxx” and “xxx”. 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.Content root is defined for modules “xxx” and “xxx”. Two modules in a project cannot share the same content root.