Scala 如何解决此异常

Scala 如何解决此异常,scala,reactivemongo,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 fo

已调用此异常,但无法解决它

 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>.
错误:scalac:加载类文件“GenericCollection.class”时检测到缺少依赖项或无效依赖项。
无法访问程序包中的术语集,
因为它(或它的依赖项)丢失了。请检查您的构建定义以了解
缺少或冲突的依赖项。(使用`-Ylog classpath`重新运行以查看有问题的类路径。)
如果针对的不兼容版本编译了“GenericCollection.class”,则完整重建可能会有所帮助。

错误消息基本上是说
GenericCollection.class
引用了
\u root\u.play
包,但是找不到
play


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

Reactivemongo使用play框架的某些部分。您需要在项目中包含Play。您可以添加修复错误的导入吗?我该怎么做?如何添加?