https://kotlinlang.org logo
a

atsushieno

08/30/2021, 10:31 AM
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

louiscad

08/30/2021, 1:38 PM
If you try to build from CLI (not just plain gradlew), does it work?
a

atsushieno

08/30/2021, 3:10 PM
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

louiscad

08/30/2021, 4:26 PM
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

atsushieno

08/30/2021, 4:37 PM
Then there was no difference between IDEA terminal and Ubuntu gnome terminal.
l

louiscad

08/30/2021, 4:38 PM
What command did you run?
a

atsushieno

08/30/2021, 4:38 PM
I run
./gradlew publishToMavenLocal
./gradlew build
still fails for different reason, but at least it goes beyond sync.
9 Views