%% 自动加上Scala版本号 % 简单的拼接 build.sbt lazy val sparkSettings = Seq( organization := "com.didichuxing", version := "1.0", scalaVersion := "2.11.10", libraryDependencies := Seq("org.apache.spark" %% "spark-sql" % "2.3.0") ) org.apache.spark:spark-sql_2.11:2.3.0 指定 spark-sql scala版本 ,使用 % "org.apache.spark" % "spark-sql_2.11" % "2.3.0"