I have a multiplatform project targeting jvm, android and ios. I have a buildSrc module with
kotlin-gradle-plugin:1.3.11
as a dependency.
The same version of the plugin is applied to the whole project.
When building, I get the following error:
Copy code
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':client-shared:compileKotlinJvm'.
Caused by: java.lang.NoSuchMethodError: org.jetbrains.kotlin.incremental.BuildUtilKt.makeModuleFile(Ljava/lang/String;ZLjava/io/File;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/io/File;
at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompiler(GradleKotlinCompilerRunner.kt:102)
at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:405)
at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:309)
at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:270)
<12 hidden>
... 29 more
Dico
01/13/2019, 8:38 PM
I suspect there are multiple versions of the plugin on the gradle classpath somehow.