我已按照此文档使用 sbt 创建了一个新的 Play 应用程序 myFirstApp。我有一个build.sbt
myFirstApp 文件夹和一个plugins.sbt
inmyFirstApp/project
文件夹。
但是,我在sbt
从 myFirstApp 执行时收到以下错误,
~/ScalaWorkspace/myFirstApp/build.sbt:7: error: not found: value playScalaSettings
playScalaSettings
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? i
[warn] Ignoring load failure: no project loaded.
我该如何解决这个问题?
更新1:得到这个错误:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: play#routes-compiler_2.9.2;2.1.1: not found
[warn] :: play#templates-compiler_2.9.2;2.1.1: not found
[warn] :: play#console_2.9.2;2.1.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: FAILED DOWNLOADS ::
[warn] :: ^ see resolution messages for details ^ ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: play#sbt-link;2.1.1!sbt-link.jar
[warn] :: play#play-exceptions;2.1.1!play-exceptions.jar
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: play#routes-compiler_2.9.2;2.1.1: not found
unresolved dependency: play#templates-compiler_2.9.2;2.1.1: not found
unresolved dependency: play#console_2.9.2;2.1.1: not found
download failed: play#sbt-link;2.1.1!sbt-link.jar
download failed: play#play-exceptions;2.1.1!play-exceptions.jar