3
votes

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

2
I had the similar problem - please see my answer here.Pavol Golias

2 Answers

2
votes

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.

0
votes

I was having a similar issue and I Have updated my IntelliJ to version 2017.3 and everything is working fine now.