Hello guys, I'm trying to setup a Kotlin multiplat...
# kotlin-native
d
Hello guys, I'm trying to setup a Kotlin multiplatform project but the build keeps failing. I'm using the following versions: kotlin version 1.3.72, coroutines version 1.3.8 and ktor version=1.3.1 Below the logs:
Copy code
> Task :compileKotlinIosArm64
w: skipping /Users/XXX/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios-iosarm64/1.3.1/2f594cbbb3394fe255137a805e4b3f02bfcb5cae/ktor-client-ios.klib. The abi versions don't match. Expected '[22]', found '17'. The library produced by 1.3.61-release-13550 compiler
e: Could not find "/Users/XXX/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios-iosarm64/1.3.1/2f594cbbb3394fe255137a805e4b3f02bfcb5cae/ktor-client-ios.klib" in [/Users/XXX/Documents/Development/CCC/kipling-multiplatform-spike/common, /Users/XXX/.konan/klib, /Users/XXX/.konan/kotlin-native-macos-1.3.72/klib/common, /Users/XXX/.konan/kotlin-native-macos-1.3.72/klib/platform/ios_arm64].
I have tried changing the Kotlin version but when I do that other problems happen. I know Kotlin Multiplatform is in Alpha but it's been a painful experience just to setup the project 😭. Any help will be really appreciate it 🙂
r
That error is saying that ktor doesn't match the Kotlin version you're using. Try ktor 1.3.2
🙌 1
d
Thank you, now the build works. I did not try that version because I did not see it here https://repo.maven.apache.org/maven2/io/ktor/ktor-client-core-native/