In playframework 2.4, if you get the error
object Application is not a member of package controllers
Note: class Application exists, but it has no companion object.
It's because the class is not instantiated. You need to add
routesGenerator := InjectedRoutesGenerator
to build.sbt
Ref: https://www.playframework.com/documentation/2.4.x/ScalaDependencyInjection
https://github.com/playframework/playframework/blob/master/templates/play-scala/build.sbt#L20