Hello, I'm trying to use Kotlin 1.9.20 in my andro...
# compose
m
Hello, I'm trying to use Kotlin 1.9.20 in my android project with compose. But compose compiler version for Kotlin 1.9.20 is not ready yet. What can I do for this?
โž• 1
m
Have you tried 1.5.3 ? it should work. For compose multiplatform 1.5.10 is based to 1.5.3 compiler version and it's working fine with kotlin 1.9.20
m
I'm currently using compose compiler 1.5.3 and I got a build error like this.
m
Try to suppress it and see what happens, because CMP is already using compose compiler 1.5.3 and it is working fine.
m
Tried to suppress like this but didn't work.
Copy code
kotlinOptions {
        // other configurations
        freeCompilerArgs += listOf(
            "-Xallow-jvm-ir-dependencies",
            "-P",
            "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
        )
    }
a
You have to wait for an official "stable" release, or resort to using pre-release snapshots from https://androidx.dev/storage/compose-compiler/repository
๐Ÿ™Œ 1
โ˜๏ธ 1
m
Thanks I also found that one too. And I'm just wondering if there's any workaround before the stable release comes out. ๐Ÿ™
a
Don't think so. It's a bit annoying to have to wait for Compose compiler to catch up even though most other kotlin-dependent libs have quicker releases.
๐Ÿ™Œ 1
https://issuetracker.google.com/issues/267642555 was linked here yesterday. Adding a +1 wouldn't hurt.
๐Ÿ™Œ 1
m
Will do. Thanks guys. ๐Ÿ™
l
The compiler for CMP is separate from the jetpack compose compiler. Changes from CMP get merged back eventually, and vice versa, but this time, CMP got updated first.
๐Ÿ™Œ 1