kotlingradleintellij-ideakotlintest

Intellij shows every line in build.gradle.kts is red


I created a new project from VCS (Kotlin and Gradle). I added three testImplementation() calls to the build.gradle.kts. IntelliJ didn't pickup the changes so I did File -> Invalidate caches / Restart and now Intellij shows every implementation() call and every testImplementation() call in red. In fact every line in every build.gradle.kts in every module is red.

Intellij has lost its mind. What do I have to do to restore IntelliJ's intelligence when it comes to kotlintest in Gradle?


Solution

  • The way I was finally able to solve this was with File -> Invalidate caches / Restart. It must have been cache corruption.