tylerwilson
07/30/2021, 2:46 PMval kotlinVersion = "1.5.21"
val coroutinesVersion = "1.5.0-native-mt"
val ktorVersion = "1.6.1"
val serializationVersion = "1.2.1"
if i try to update any of them (1.5.1-native-mt, 1.6.2 or 1.2.2), then the linkDebugFrame taks will either fail silently (create an empty klib folder) or spit out the error below, depending on the target (I have it set up for android, jvm, ios, watchos and macos). Using latest AS Arctic Fox with latet Kotlin 1.5.21 plugin.
w: skipping /Users/tylerwilson/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-serialization-iosx64/1.6.2/681f93a891846267e5050007bc41a01e459dbe74/ktor-client-serialization.klib. Incompatible abi version. The current default is '1.4.2', found '1.5.0'. The library produced by 1.5.20 compiler
e: Could not find "/Users/tylerwilson/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-serialization-iosx64/1.6.2/681f93a891846267e5050007bc41a01e459dbe74/ktor-client-serialization.klib" in [/Users/tylerwilson/Projects/salonbiz-stylist-android, /Users/tylerwilson/.konan/klib, /Users/tylerwilson/.konan/kotlin-native-prebuilt-macos-1.5.10/klib/common, /Users/tylerwilson/.konan/kotlin-native-prebuilt-macos-1.5.10/klib/platform/ios_x64]
Can anybody help????russhwolf
07/30/2021, 3:18 PM~/.konan/kotlin-native-prebuilt-macos-1.5.10
so make sure you actually are using kotlin 1.5.21.tylerwilson
07/30/2021, 3:21 PMresolutionStrategy {
eachPlugin {
if (requested.id.namespace == "com.android") {
useModule("com.android.tools.build:gradle:7.0.0")
}
when (requested.id.id) {
"kotlin-multiplatform", "org.jetbrains.kotlin.multiplatform", "org.jetbrains.kotlin.native.cocoapods" ->
useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
"kotlinx-serialization", "org.jetbrains.kotlin.plugin.serialization" ->
useModule("org.jetbrains.kotlin:kotlin-serialization:1.5.21")
}
}
}
and this block in build:
plugins {
id("com.android.library") //version "4.2.2"
kotlin("multiplatform") //version "1.5.21"
//kotlin("native.cocoapods")
kotlin("plugin.serialization") //version "1.5.21"
id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3"
}
note the versions are commented out since that then breaks everything.russhwolf
07/30/2021, 3:26 PMtylerwilson
07/30/2021, 3:28 PM