Hello, I am trying to add a new KMM library module in my existing Android app but it fails with error:
Error resolving plugin [id: 'org.jetbrains.kotlin.multiplatform', version: '1.9.22', 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.
This is my
plugin
block
plugins {
alias(libs.plugins.kotlin.multiplatform).apply(false)
alias(libs.plugins.kotlin.android).apply(false)
// The Kotlin version you use in your Android project
//kotlin("multiplatform")
//id("com.android.library")
}
and this is my
lbs.versions.toml
file
[versions]
kotlin = "1.9.22"
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
Can someone help me here. Thanks