PlayFramework 2.5 / Sbt / Scala Build在MacOs上运行正常 尝试在Windows笔记本电脑上运行时出现下一个问题:
[info] Done updating.
[info] Compiling 34 Scala sources and 1 Java source to C:\Source\TravelApp\target\scala-2.11\classes...
[error] C:\Source\TravelApp\target\scala-2.11\routes\main\controllers\routes.jav
a:12: error: cannot access Function0
[error] public static final controllers.ReverseAssets Assets = new controllers.ReverseAssets(RoutesPrefix.byNamePrefix());
[error] ^
[error] class file for scala.Function0 not found
[error] 1 error
[error] (compile:compile) javac returned nonzero exit code
[error] Total time: 16 s, completed 09.05.2017 13:29:06
[TravelApp] $
如果我访问project / build.properties并将sbt版本从0.13.5(默认情况下)更改为0.13.15,则会丢失一些错误消息。但很少有人留下。
[info] Done updating.
[info] Compiling 34 Scala sources and 1 Java source to C:\Source\TravelApp\target\scala-2.11\classes...
[error] C:\Source\TravelApp\conf\routes: error: cannot access Function0
[error] (compile:compileIncremental) javac returned nonzero exit code
[error] Total time: 17 s, completed 09.05.2017 13:59:01
[TravelApp] $
请你给我一个如何解决它的提示......