https://kotlinlang.org logo
#eap
Title
# eap
u

uli

08/03/2022, 9:02 AM
I am seeing “Multiple incompatible variants of org.jetbrains.kotlinkotlin gradle plugin api1.7.20-Beta were selected”. More in thread.
1
This is an a kmm project with kotlin 1.7.20-Beta and ksp 1.7.20-Beta-1.0.6. Any clue to what might be going wrong?
Copy code
> Could not resolve all files for configuration ':trailblazer-kmm-demo:customer-kmm:classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20-Beta.
     Required by:
         project :trailblazer-kmm-demo:customer-kmm > com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.7.20-Beta-1.0.6 > com.google.devtools.ksp:symbol-processing-gradle-plugin:1.7.20-Beta-1.0.6
         project :trailblazer-kmm-demo:customer-kmm > com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.7.20-Beta-1.0.6 > com.google.devtools.ksp:symbol-processing-gradle-plugin:1.7.20-Beta-1.0.6 > org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20-Beta
         project :trailblazer-kmm-demo:customer-kmm > com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:1.7.20-Beta-1.0.6 > com.google.devtools.ksp:symbol-processing-gradle-plugin:1.7.20-Beta-1.0.6 > org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20-Beta > org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.20-Beta
      > Multiple incompatible variants of org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20-Beta were selected:
           - Variant org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20-Beta variant gradle70RuntimeElements has attributes {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.plugin.api-version=7.0, org.gradle.status=release, org.gradle.usage=java-runtime}
           - Variant org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20-Beta variant gradle71RuntimeElements has attributes {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.plugin.api-version=7.1, org.gradle.status=release, org.gradle.usage=java-runtime}
Resolved. The reason was one plugin (ksp) being on kotlin 1.7.20-Beta and another plugin that was still on kotlin 1.7.10.
290 Views