object slick不是包scala的成员

时间:2016-02-12 01:44:35

标签: scala playframework playframework-2.0

我试图在我的播放项目中导入scala.slick,但我一直在"对象光滑不是包scala错误的成员"

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

1 个答案:

答案 0 :(得分:6)

我发现我必须使用

import slick

而不是

import scala.slick