Grails application is not found after updating to IntelliJ IDEA Ultimate 2016.2

A Simple solution to this is to refresh the gradle projects.

You can do this by popping out the little gradle tab and hitting the "Refresh All Gradle Projects"


I run into the same problem always when i restart intellij. Running grails clean command from the terminal fixed it.


First, re-import the project into IntelliJ 2016.2. Choose the build.gradle file for the import. Use the gradle wrapper or a local gradle installation, where you have given IntelliJ the path to the locally installed Gradle. Let IntelliJ re-index everything. Wait until you see no further indexing on the bottom of the screen.

Second, run the application once, with no edit configuration. After this completes with error, you should be able to choose Run -> Edit Configuration / Application.

Third, you can go into the project pane to the grails-app/init/app-name/Application.groovy file and right-click on that and choose Run. After that, an edit configuration will be created.

Finally, you can try to invalidate cache and restart. (This has nothing to do with Edit Configuration, but sometimes the gradle and/or .idea caches get out of sync.)