kartik1712
10/17/2020, 10:22 AMCould not create an instance of type org.jetbrains.kotlin.gradle.targets.js.subtargets.KotlinBrowserJs.
Failed to apply plugin [class 'org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin'] > The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
My root build.gradle.kts
does not have a plugin block and my KMM module has the plugin block as follows.
plugins {
kotlin("multiplatform") version Versions.kotlin
application
kotlin("plugin.serialization") version Versions.kotlin
}
Zach Klippenstein (he/him) [MOD]
10/17/2020, 2:31 PMkartik1712
10/17/2020, 3:54 PM