intellij-ideaplayframeworkintellij-14playframework-2.4

Play Framework & IntelliJ - Cannot resolve symbol index/routes


I'm new to playframework/intellij and I have finally managed to import a play-java-intro succesfully (yey!), but when I try to edit the Application.java file, I see the error shown in the picture below "Cannot resolve symbol index" and "Cannot resolve symbol routes".

What does this mean? How do I get rid of these errors/warnings?

I have tried to run the program aswell to see if it works, and the project works. This means that the errors are showing false.

Also, how do I refresh the project in IntelliJ? I once managed to do this, but that was after a popup came in the topright corner. I have never managed to find the refresh button after that. Just a "Synchronize Project", which does nothing.

Error in IntelliJ


Solution

  • Do as following:

    1- In intelliJ navigate to Project Structure > Modules

    2- In the sources tab find target > scala_2.11 > src_managed > main and click on it.

    Project Structure

    3- Mark in as 'Sources' by clicking the button on top of browsing pane.

    4- Click OK

    That should be it.