Multiple scala libraies causing error in intellij?

后端 未结 11 1940
独厮守ぢ
独厮守ぢ 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:12

    You have JAR files from multiple versions of scala-library.jar. In order to make the error go away you will have to delete the duplicates. To figure out which version you want to keep, you can view the manifest file inside each JAR:

    META-INF/MANIFEST.MF
    

    Inside the manifest file you should see something like this:

    Manifest-Version: 1.0
    Class-Path:
    Implementation-Title: Scala-Library
    Implementation-Version: 2.11.4
    

    The error is happening because IntelliJ cannot figure out which version of a given Scala class to use.

提交回复
热议问题