Intellij not recognizing when new dependencies are added to build.gradle.kts
Answered
I've checked out a Kotlin project from VCS. I've added the kotlintest dependencies to the build.gradle.kts file, but Intellij does not recognize the new dependencies. I've executed the reload from disk option on the build.gradle.kts file and on the module and the project, but to no effect.
What does it take to make Intellij recognize new dependencies?
Please sign in to leave a comment.
Did you reimport the project? See https://stackoverflow.com/a/43192764/104891 .
I got it to work with File -> Invalidate caches / restart
I also found this setting which should solve this for any future changes:
Settings -> Build Tools -> Reload project after changes in the build scripts -> Any Changes