playRoutes not found after upgrade play version from 2.3 to 2.4

95 Views Asked by At

After I upgrade play framework from version 2.3 to 2.4, the build finished without errors but after accessing the SBT shell and compile the project, I got the following error:

[trace] Stack trace suppressed: run last project-app-server/compile:playRoutes for the full output.
[error] (project-app-server/compile:playRoutes) java.lang.NoSuchMethodError: play.routes.compiler.static.twirl.forwardsRouter_Scope0$forwardsRouter._display_(Ljava/lang/Object;Lscala/reflect/Manifest;)Lplay/twirl/api/Appendable;
1

There are 1 best solutions below

0
phdoerfler On

Check if you are using the sbt plugin sbt-pack. Downgrading from version 0.12 to 0.8.0 and removing it from large parts of the build seems to fix the twirl compilation issue that shows up when going from Play 2.3 to Play 2.4 in one particular case. Hope this helps!