Hi folks, I’m facing the following problem in my compose multiplatform project:
When using
kotlin.version=1.8.20
compose.version=1.4.1
I can run iOS app, but on running Android app, the build fails:
> Task :androidApp:compileDevDebugKotlin FAILED
e: This version (1.4.1) of the Compose Compiler requires Kotlin version 1.8.0 but you appear to be using Kotlin version 1.8.20 which is not known to be compatible. Please consult the Compose-Kotlin compatibility map located at <https://developer.android.com/jetpack/androidx/releases/compose-kotlin> to choose a compatible version pair (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
So I changed Kotlin version to 1.8.0 and it solved the issue for Android, but then iOS has an issue: (full details in comment)
> Task :composables:linkPodDebugFrameworkIosSimulatorArm64 FAILED
e: Module "org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitsimarm64)" has a reference to symbol platform.UIKit/UIView.setFrame|-3257539694696545905[100]. Neither the module itself nor its dependencies contain such declaration.
This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitsimarm64)" that has a different version in the project than the version that "org.jetbrains.compose.ui:ui (org.jetbrains.compose.ui:ui-uikitsimarm64): 1.4.1" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
Any help would be appreciated!