Jire / Charlatano

Proves JVM cheats are viable on native games, and demonstrates the longevity against anti-cheat signature detection systems
GNU Affero General Public License v3.0
676 stars 204 forks source link

IntelliJ "Kotlin is not configured" #581

Open nnerio opened 6 years ago

nnerio commented 6 years ago

I got problem in IntelliJ IDE, like "Kotlin is not configured" and some "Unsolved reference" what should I do?

DarrienG commented 5 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.