sbt.librarymanagement.ResolveException:未解析的依赖项:org.scala-lang #scala-library; 2.2.0:未找到

时间:2018-04-30 07:18:28

标签: scala apache-spark intellij-idea sbt apache-spark-sql

我正在使用依赖:

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 *

error while importing dependency

1 个答案:

答案 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