scala 如何解决此异常
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28781028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to resolve this exception
提问by panky
This Exception invoked and not able to resolved it ...
调用此异常但无法解决它...
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>.
采纳答案by kiritsuku
The error message is basically saying that GenericCollection.classhas a reference to the _root_.playpackage, but the playpackage can't be found.
错误信息基本上是说GenericCollection.class有对_root_.play包的引用,但play找不到包。
You have to add a dependency to the library that provides the playpackage, which is very likely part of the play framework.
您必须向提供play包的库添加依赖项,这很可能是 play 框架的一部分。

