Intellij Re-import Gradle Project
I'm using intellij 2017 and was unable to locate the "refresh" option as described in previous versions of intellij. For me,
./gradlew idea
corrected the issue. gradle idea
should also work.
UPDATE
As noted in the comments, when using intellij 2017 open the build.gradle
file as a project and enable the "auto import" command to avoid this issue all together!
IntelliJ 13 supports "refreshing" the Gradle project. When the project is refreshed any dependency changes are picked up as well as any changes to the project structure.
In order to do so go to View -> Tool Windows and open the Gradle Tool Window you find the refresh button in the upper bar.