以下是我的build.sbt
scalaVersion := "2.11.12"
libraryDependencies ++= Seq(
"org.apache.predictionio" %% "apache-predictionio-core" % "0.14.0" % "provided",
"org.apache.spark" %% "spark-core" % "2.4.0" % "provided",
"org.apache.spark" %% "spark-mllib" % "2.4.0" % "provided",
"org.apache.lucene" % "lucene-core" % "6.5.1",
"org.apache.lucene" % "lucene-analyzers-common" % "6.5.1",
"org.xerial.snappy" % "snappy-java" % "1.1.1.7",
"com.esotericsoftware" % "kryo" % "4.0.1",
"org.json4s" % "json4s-core_2.11" % "3.6.5",
"org.json4s" % "json4s-native_2.11" % "3.6.5",
"org.json4s" % "json4s-jackson_2.11" % "3.6.5"
)
,并且出现此错误。
线程“ main”中的异常java.lang.NoSuchMethodError:org.json4s.ParserUtil $ .quote(Ljava / lang / String;)Ljava / lang / String;
我尝试了不同版本的json4s,但是没有运气。总是遇到相同的错误。