Open nnerio opened 6 years ago
This is completely unrelated to the project, but since I found it while Googling for the same error, someone else probably will too, so here are the steps to fix it on Linux (and probably macOS too).
Nowadays this error is indicative of a corrupt or a stale cache, so the fix is to make it rebuild the cache.
This is under the assumption the Kotlin plugin is already installed (which it probably is). If it isn't install it and you'll probably be good to go. Otherwise...
Delete this:
rm -rf ~/.m2/repository/org/jetbrains/kotlin
This is the cache Jetbrains uses to store Kotlin artifacts.
Next you want to:
CTRL + SHIFT + A reimport all gradle projects
It will force reimport the gradle projects you have open and reindex and re-download dependencies (which includes Kotlin).
And if that still doesn't work, do
CTRL + SHIFT + A invalidate caches and restart
And then on restart you should be good to go.
I got problem in IntelliJ IDE, like "Kotlin is not configured" and some "Unsolved reference" what should I do?