os_mon
os_mon

Reputation: 71

Kotlin Gradle - java.lang.NoClassDefFoundError: org/jetbrains/kotlin/konan/target/KonanTarget

I'm using Kotlin Multiplatform with Gradle via Intellij, everything worked fine so far. I suddenly get an error when building the project

java.lang.NoClassDefFoundError: org/jetbrains/kotlin/konan/target/KonanTarget

which didn't happen before. I remember deleting a few files from the Gradle cache recently, could it be because of that?

I thought I could run gradle getDeps and this would solve the problem, however this error occurs immediately on every Gradle task.

Upvotes: 3

Views: 9684

Answers (1)

os_mon
os_mon

Reputation: 71

Deleted whole ~/.gradle/caches directory and reran gradle build. Now its working again - thanks to @Philip Dukhov

Upvotes: 4

Related Questions