当我在我的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.reactivemongo和reactivemongo-play-json可以住在一起吗?
谢谢,纳撒尼尔
发布于 2017-02-19 08:56:05
如果play还没有包含在依赖项中,那么您似乎需要包含play-json作为依赖项。有点奇怪,因为我认为reactivemongo- play -json的整个想法是在不需要播放的情况下获得json支持。无论如何,编译现在可以在包含以下依赖项后工作:"com.typesafe.play“%% "play-json”% "2.6.0-M3“
https://stackoverflow.com/questions/42302127
复制相似问题