【发布时间】:2018-09-20 03:15:37
【问题描述】:
我正在使用
version := "1.0"
scalaVersion := "2.11.8"
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
libraryDependencies ++= {
val akkaV = "2.4.18"
val scalaTestV = "2.2.6"
val akkaHttpV = "10.0.10"
}
我试图运行我的测试用例,但它显示这样的错误
Error:scalac: missing or invalid dependency detected while loading class file 'SprayJsonSupport.class'.
Could not access type FromByteStringUnmarshaller in package akka.http.scaladsl.unmarshalling.package,
because it (or its dependencies) are missing. Check your build definition for
missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
A full rebuild may help if 'SprayJsonSupport.class' was compiled against an incompatible version of akka.http.scaladsl.unmarshalling.package.
我该如何解决这个问题,请在这里提出建议。 谢谢。
【问题讨论】:
标签: scala unit-testing akka