2016-02-12 88 views
2

我想在我的發揮項目導入scala.slick但我不斷收到會員「對象油滑不包斯卡拉錯誤的成員」對象光滑不包斯卡拉的

build.sbt:

libraryDependencies ++= Seq(
    jdbc, 
    cache, 
    ws, 
    specs2 % Test, 
    "com.typesafe.slick" %% "slick" % "3.1.1", 
    "com.typesafe.play" %% "play-slick" % "1.1.1" 
) 

resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases" 
resolvers += "typesafe" at "http://repo.typesafe.com/typesafe/releases/" 

我使用Scala的2.11.6,發揮2.4.x的

回答

5

我發現我不得不使用

import slick 

而不是

import scala.slick 
+2

在版本2和版本3之間'scala.slick'軟件包被移動到'slick'。http://slick.typesafe.com/doc/3.0.0/upgrade.html – dwickern