I am using IDEA 13 with Play 2.2.1 and was doing the examples on the play site.
public static Result index() {
return redirect(routes.Application.tasks());
}
IDEA says "cannot resolve method redirect(?)" and red underlines routes.Application.tasks()
I have done "compile" and then "idea" from the play console.
Well I am using "IntelliJ Idea 13" and doing "sbt" Playframework project with "Activator". After everything tried, I finally solved this issue with following steps in terminal/cmd at my existing root sbt project
sbt clean
sbt idea
Note: If you are building the Playframework project with "Play" command instead of "Activator" instead of
sbt idea
command you can tryplay idea
orplay "idea with-sources=yes"
Hope this will help you.