I have a Gradle module which is part of a project. Sometimes when I update the version of a dependency in the build.gradle file and after that refresh Gradle dependencies of that module in the Gradle pane, it doesn't work which I confirm by holding the command key (mac user) and hover over a java import to see which dependency it comes from. When I check the library tab in the project structure window, I see both old and new version of that dependency. After deleting the old version from there and redo refresh Gradle dependencies, it still doesn't work. Even after quitting and starting the Intellij app it still doesn't work. Is there a step I missed?