Anyone experienced this sort of "gradle sync issue...
# kotlin-native
a
Anyone experienced this sort of "gradle sync issues" that occurs on IDEA but not with gradlew (directly) ? https://gist.github.com/atsushieno/d614c3ac8bb85bea3d035ce4577fa32e
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':commonizeNativeDistribution'.
Caused by: java.lang.ClassCastException: class org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension_Decorated cannot be cast to class org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension (org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension_Decorated is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @34f47f71; org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @3b0ff146)
l
If you try to build from CLI (not just plain gradlew), does it work?
a
Sorry I'm not familiar with the term - what do you mean by CLI? Is there some CLI tool that I can run from terminal, or from terminal on IDEA?
l
CLI = Command Line Interface = Terminal
Terminal on IDEA or from the OS of you machine should do the same as long as you're in the right directory.
a
Then there was no difference between IDEA terminal and Ubuntu gnome terminal.
l
What command did you run?
a
I run
./gradlew publishToMavenLocal
./gradlew build
still fails for different reason, but at least it goes beyond sync.