如何解决此异常

时间:2015-02-28 11:11:52

标签: scala reactivemongo

此异常被调用但无法解决...

 Error:scalac: missing or invalid dependency detected while loading class file 'GenericCollection.class'.
 Could not access term play in package <root>,
 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 'GenericCollection.class' was compiled against an incompatible version of <root>.

1 个答案:

答案 0 :(得分:10)

错误消息基本上是说GenericCollection.class引用了_root_.play包,但无法找到play包。

您必须向提供play包的库添加依赖项,这很可能是播放框架的一部分。