https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
g

Guilherme Delgado

10/12/2023, 11:01 AM
Greetings! I’m currently delving into K2 in my sample project, and I’ve achieved successful compatibility with Android, iOS, and Desktop using the following versions: - Kotlin: 1.9.20-Beta2 - Ksp: 1.9.20-Beta2-1.0.13 - composeMultiplatformCompiler: 1.5.2.1-Beta3 However, when I updated to the following versions: - Kotlin: 1.9.20-RC - Ksp: 1.9.20-RC-1.0.13 - composeMultiplatformCompiler: 1.5.2.1-rc01 While Desktop functionalities remain intact - Android since there’s no compose compiler version compatible with 1.9.20-RC, I achieved success by adding
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=1.9.20-RC"
) -, I encountered issues with iOS, leading to a failure. I’ve saw the latest post by Jetbrains, and I don’t know where to report my findings. If this is not the write channel, I apologize.
d

dmitriy.novozhilov

10/12/2023, 11:05 AM
Please create a ticket at kotl.in/issue
👍 1
j

John O'Reilly

10/12/2023, 3:24 PM
@Guilherme Delgado I just tried with Confetti and seems to work ok (have had K2 also enabled in this project) https://github.com/joreilly/Confetti/pull/931
seems like same dependencies as you
btw there is a dev version of androidx compose compiler now that works with 1.9.20-RC (https://androidx.dev/storage/compose-compiler/repository)
❤️ 1
g

Guilherme Delgado

10/12/2023, 3:31 PM
Let me try with those, but I’ve noticed you are using compose multiplatform 1.5.3 instead of 1.5.10-beta02 could it be that? I’m compiling to check 🙂
j

John O'Reilly

10/12/2023, 3:31 PM
I actually tried both and seemed ok.....looked like 1.5.3 was more recent
hmm, though version numbers may indicate otherwise
😅 1
g

Guilherme Delgado

10/12/2023, 3:35 PM
had the same problem with 1.5.3 😕
stack-trace for ./gradlew shared ui composecompileKotlinIosSimulatorArm64 --stacktrace
JetBrains team could reproduce, saw it now in the issue opened 🙏
👍 1
2 Views