Hi guys, I've updated ktor version in my library a...
# multiplatform
o
Hi guys, I've updated ktor version in my library and in my project where I'm using that library after what I started getting the following error. Does anyone know what could be the issue?
Copy code
e: Could not find "org.jetbrains.kotlin.native.platform.CoreFoundationBase" in [/Users/username/project, /Users/username/.konan/klib, /Users/username/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.20/klib/common, /Users/username/.konan/kotlin-native-prebuilt-macos-aarch64-1.7.20/klib/platform/ios_simulator_arm64]
p
You might need to update kotlin lang too
Check what version of kotlin that Ktor version was built with. And apply the latest multiplatform plugin too
And also clean, invalidate caches restart AS/IJ, the typical stuff
o
Yeah I've tried to change kotlin version to 1.8.10/1.8.20 and 1.8.21 and applied the latest multiplatform plugin with invalidating caches and restart, but unfortunately it did not help.
p
I remember seeing that same error but forgot how it got fixed.
Do a lookup online for that specific dependency CoreFoundationBase and see what package in the kotlin native ecosystem it belongs, then try to include the package directly
It seems that Ktor client depends on some transitive dependency that your project probably already has and it doesn't pull the Ktor version.
174 Views