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?

0
2 comments

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

1

Please sign in to leave a comment.