我正在使用依赖:
version := "0.1"
scalaVersion := "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.2.0"
导入依赖项时我收到错误
[error] sbt.librarymanagement.ResolveException:未解析的依赖项: org.scala-lang #scala-library; 2.2.0:not found *
答案 0 :(得分:0)
没有scalaVersion 2.2.0
使用scalaVersion := "2.11.8"
我猜您将sparkVersion称为2.2.0
scalaVersion := "2.11.8"
val sparkVersion := "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-core" % sparkVersion