I’m trying to update to alpha 9, but I’m getting > This version (1.0.0-alpha09) of the Compose Co...
b
I’m trying to update to alpha 9, but I’m getting
This version (1.0.0-alpha09) of the Compose Compiler requires Kotlin version 1.4.21 but you appear to be using Kotlin version 1.4.20 which is not known to be compatible.
Everywhere my project defines a Kotlin dependency we are using 1.4.21. I can see in my Gradle dependency report that something is forcing Kotlin to 1.4.20 in the
kolinCompilerClasspath
configuration, but I don’t see anything that would indicate what is doing that. Any tips on troubleshooting?
b
That’s what I was using, but sadly it doesn’t tell me why the kotlin compiler is being forced to 1.4.20:
Copy code
kotlinCompilerClasspath
+--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.21 -> 1.4.20
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.4.20
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.20
|    |    \--- org.jetbrains:annotations:13.0
|    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.4.20
|    +--- org.jetbrains.kotlin:kotlin-reflect:1.4.20
|    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.20 (*)
|    +--- org.jetbrains.kotlin:kotlin-daemon-embeddable:1.4.20
|    \--- org.jetbrains.intellij.deps:trove4j:1.0.20181211
\--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.4.20 (*)
m
Do you have this set properly?
Copy code
composeOptions {
        kotlinCompilerExtensionVersion "${compose_version}"
        kotlinCompilerVersion '1.4.21'
    }
3
c
@Bryan Herbst if you define the stdlib explicitly, that should pick up and overwrite the 1.4.20, no?
b
Ahh @Mantas Varnagiris that was it- we only had
kotlinCompilerExtensionVersion
set, which has been working for us for months. Setting the
kotlinCompilerVersion
fixed it. Thanks!
👍 4