当我在build.sbt中包含以下内容时(使用Scala版本2.12.1)
"org.reactivemongo" %% "reactivemongo" % "0.12.1",
"org.reactivemongo" %% "reactivemongo-play-json" % "0.12.1",
我收到了错误......
Error:scalac: missing or invalid dependency detected while loading class file 'LowerImplicitBSONHandlers.class'.
Could not access type Writes in package play.api.libs.json,
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 'LowerImplicitBSONHandlers.class' was compiled against an incompatible version of play.api.libs.json.
反应性和反应性的玩家可以一起生活吗?
谢谢, 纳撒尼尔
答案 0 :(得分:-1)
似乎你需要将play-json包含为依赖项,如果你的依赖项中还没有包含play。有点奇怪,因为我认为reactivemongo-play-json的整个想法是在不需要游戏的情况下获得json支持。无论如何,在包含以下依赖项之后,编译现在可以正常工作: “com.typesafe.play”%%“play-json”%“2.6.0-M3”