使用2.4x的Play框架.新建一個play項目提示app
play.sbt.PlayExceptions$CompilationException: Compilation error[type Application is not a member of package controllers]框架
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)spa
at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27)scala
at scala.Option.map(Option.scala:145)it
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:49)io
at play.sbt.run.PlayReload$$anonfun$taskFailureHandler$1.apply(PlayReload.scala:44)class
at scala.Option.map(Option.scala:145)object
at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:44)map
at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:40)方法
at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)
at play.sbt.run.PlayReload$$anonfun$compile$1.apply(PlayReload.scala:17)
處理方法:
將Application中的object修改成class定義就行了.