Multiple scala libraies causing error in intellij?

后端 未结 11 2061
独厮守ぢ
独厮守ぢ 2021-02-05 02:23

I am using intellij 14 with scala 2.11.6 installed using home brew and symlink using

ln -s /usr/local/Cellar/scala/2.11.6/libexec/src /usr/local/Cellar/scala/2.1         


        
11条回答
  •  甜味超标
    2021-02-05 03:06

    I also ran into that error. The fix I found was to remove the duplicate scala-library in the .iml file generated by intellij.

    Basically I located the relevant .iml file by grepping the scala version, and found that two scala-library in that file. I removed the scala 2.11 version, and then it works.

提交回复
热议问题