据我所知,Play 2.5.4需要scala 2.11或更高版本。使用Play配置Scala 2.11 2.5.4
我的打法似乎从阅读 '项目\目标\斯卡拉2.10 \ SBT-0.13 \ resource_managed \主\ SBT \ sbt.builds,'
为什么读书时,我已经安装了2.11 2.10阶?
有人可以帮忙吗?
有助于告诉游戏必须使用Scala 2.11而不是2.10。
error:
[info] Set current project to root (in build file:/)
java.lang.RuntimeException: No main class detected.
at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) No main class detected.
[error] Total time: 0 s, completed 6 Jul, 2016 2:20:54 PM
有3只在项目目录中的文件。 Build.scala,plugins.sbt和build.properties。我在哪里添加scalaVersion键值?请建议。 –
使用build.properties来构建too(sbt)版本,插件来添加插件,通常我使用Versions.scala来保持版本和一个Dependencies.scala来保持依赖关系(只是一个具有lazy val ModuleID序列的依赖关系的对象)。 –