https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Armond Avanes

03/09/2024, 5:40 PM
Has anyone tried to use Compose Multiplatform 1.6.0 with Kotlin 1.9.23? The project sync fail with the following error message:
Compose Multiplatform 1.6.0 doesn't support Kotlin 1.9.23
(full stacktrace in 🧵) I've tried with both AGP
8.2.2
and
8.3.0
but no improvement.
error-stacktrace.txt
r

Robert Jaros

03/09/2024, 6:19 PM
Try to use
suppressKotlinVersionCompatibilityCheck
a

Armond Avanes

03/09/2024, 6:46 PM
@Robert Jaros I added the following configuration to the root of
composeApp/build.gradle.kts
:
Copy code
compose {
    kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=1.9.23")
}
But it didn't fix the issue.
r

Robert Jaros

03/09/2024, 6:49 PM
It works for me but I'm using only web targets.
a

Armond Avanes

03/09/2024, 6:56 PM
Here I have iOS, Android, Desktop and Web.
When I added the following line to
compose { ... }
block, it worked!
Copy code
kotlinCompilerPlugin.set(dependencies.compiler.forKotlin("1.9.22"))
👍 1
Thanks for your response @Robert Jaros
64 Views