0
votes

I have an play application, IntelliJ CE does not recognise anything play.*

such as: Error:not found: object play import play.api.GlobalSettings

How can I fix this?

It is a gradle project and building fine from command-line but intelliJ CE has some problem with the code.

2
Did you import it as a Gradle project? Did you try Clean/Build in IntelliJ? - jacks

2 Answers

0
votes

Three ways you can deal with this (assuming your IntellJ is up to date):

  1. Close the IntellJ and import the project again as a Gradle project.

  2. Remove the .idea folder within the project's folder; and try to import it again.

  3. Click to Invalid Caches / Restart from the file menu.