gradleintellij-idea

How to restore/resynch Gradle inside IntelliJ?


I have been using Intellij 2018.1 and Gradle for a while now without issues. This is the first time I have seen this problem.

I have a Gradle-based Java project that doesn't seem to behave correctly when I edit the build.gradle in IntelliJ. Gradle behaves correctly when I issue commands on the terminal, so I think this is limited to IntelliJ's integration w/ Gradle.

What I'm used to seeing in other projects

enter image description here

What I'm seeing in this one project

enter image description here

Any ideas as to what is going wrong and what I can do to restore/fix Gradle for my project?


Solution

  • Your project was probably not imported from Gradle, but created manually in the IDE using the wizard. You can import it again from build.gradle file and overwrite the existing project files.

    Changes are refreshed either manually or automatically depending on your settings.