[英]Play framework not found value routesGenerator when running activator run
I'm trying to setup play framework but when running 我正在尝试设置播放框架,但是在运行时
activator run
I receive this error 我收到此错误
/build.sbt:17: error: not found: value routesGenerator
routesGenerator := InjectedRoutesGenerator
^
[error] Type error in expression
I've searched for solutions with no luck, is there any incompatibility issue for play framework 2.3.9? 我一直在寻找解决方案,但是运气框架2.3.9是否存在任何不兼容问题?
My environment is ubuntu 12.0.4 with java 1.7.0_21 我的环境是Java 1.7.0_21的ubuntu 12.0.4
Thank you. 谢谢。
我知道您已经接受了正确的答案,但是以下是解决此问题的方法:您缺少此导入:import play.sbt.routes.RoutesKeys._
InjectedRoutesGenerator is from the Play 2.4.x InjectedRoutesGenerator来自Play 2.4.x
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.