java.lang.NoSuchMethodError: scala.Predef$.refArrayOps

前端 未结 10 979
刺人心
刺人心 2020-12-01 13:59

I have the following class:

import scala.util.{Success, Failure, Try}


class MyClass {

  def openFile(fileName: String): Try[String]  = {
    Failure( new          


        
10条回答
  •  臣服心动
    2020-12-01 14:09

    I had SDK in global libraries with a different version of Scala(IntelliJ IDEA).
    File -> Project Structure -> Global libraries -> Remove SDK -> Rebuild. It fixed the Exception for me.

提交回复
热议问题