Hi there. I am stuck on a gradle build error: ```E...
# plugin-development
c
Hi there. I am stuck on a gradle build error:
Copy code
Error resolving plugin [id: 'org.jetbrains.kotlin.multiplatform', version: '2.1.0', apply: false]
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
The error happens in my root build.gradle.kts, probably because of buildSrc dependencies. But buildSrc doesn't use the multiplatform plugin, so this is rather weird. Is there any way to know where the dependency with an unspecified version is coming from?
t
./gradlew buildEnvironment
and
./gradlew :buildSrc:dependencies
should tell you
👍 1
a
The Kotlin JVM and Multiplatform plugins are both in the same JAR, so if you add any KGP as a buildSrc dependency, you get both.