出现错误:scalatest_2.10-1.9.1.jar is cross-compiled with an incompatible version of Scala (2.10).
将play自带的samples中scala的例子生成eclipse项目后倒入到eclipse中会出现红色的X,但并没有提示哪个文件出错
查看problems下面错误显示
scalatest_2.10-1.9.1.jar is cross-compiled with an incompatible version of Scala (2.10).
In case of errorneous report, this check can be disabled in the compiler preference page.
进入到windows->preferens->scala compiler->preference->Build manager->withVersionClasspathValidator 勾选去掉
右键点击项目 -》scala->Add Scala Libarary To Build Path即可
如果还有错,右击项目->Properties->scala compiler->Build Manager->withVersionClasspathValiadator 取消