两天过去了,这个噩梦还在继续。我是Play的新手。
我可以创建我的游戏项目,编译它并使用命令运行。
但是,当我尝试使用 Intellij Idea 导入或打开它时,会出现以下错误。
正如这里提到的,我不能从命令行做激活器的想法。当我这样做时,我明白了。
我昨天能够完成导入工作,但由于build.properties和plugins.sbt文件中的一些更改而停止。现在,当我创建一个新文件时,文件看起来像这样。
插件.sbt
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2")
// Web plugins
addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.6")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
// Play enhancer - this automatically generates getters/setters for public fields
// and rewrites accessors of these fields to use the getters/setters. Remove this
// plugin if you prefer not to have this feature, or disable on a per project
// basis using disablePlugins(PlayEnhancer) in your build.sbt
//addSbtPlugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")
// Play Ebean support, to enable, uncomment this line, and enable in your build.sbt using
// enablePlugins(SbtEbean). Note, uncommenting this line will automatically bring in
// Play enhancer, regardless of whether the line above is commented out or not.
// addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "1.0.0")
build.properties
#Activator-generated Properties
#Thu Jul 09 08:03:01 NPT 2015
template.uuid=4908845b-9453-410b-af0f-404c1440dff1
sbt.version=0.13.8
然后这个项目不知何故崩溃了。现在我无法导入项目。
我觉得问题出在IDE方面。