如何解决此异常

pan*_*nky 10 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>.
Run Code Online (Sandbox Code Playgroud)

kir*_*uku 10

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

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

  • 我怎么做?? (2认同)