https://kotlinlang.org logo
b

bod

03/21/2020, 9:08 AM
Hello, World! So I've tried to update my project's dependencies to the latest (including Kotlin 1.3.70), and now I'm getting this:
Copy code
w: skipping /Users/bod/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-io-iosx64/0.1.16/dafe6011ea63ea7200a43bcff435a46204a1b1b8/kotlinx-io.klib. The abi versions don't match. Expected '[22]', found '17'
e: Could not find "/Users/bod/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-io-iosx64/0.1.16/dafe6011ea63ea7200a43bcff435a46204a1b1b8/kotlinx-io.klib" in [/Users/bod/gitrepo/klibqonto, /Users/bod/.konan/klib, /Users/bod/.konan/kotlin-native-macos-1.3.70/klib/common, /Users/bod/.konan/kotlin-native-macos-1.3.70/klib/platform/ios_x64].
Daemon vm is shutting down... The daemon has exited normally or was terminated in response to a user interrupt.
It looks like it's a
kotlinx-io
issue, but what exactly, and what can I do (if anything)? Thanks a lot!
l

Luoqiaoyou

03/21/2020, 10:18 AM
try to update your IDE Kotlin/Native plugin, it works for me
b

bod

03/21/2020, 10:19 AM
well, this error happened on the command line, so not related to the IDE, right?
d

Dominaezzz

03/21/2020, 11:33 AM
The library hasn't and isn't going to be updated. At least, not with the same API surface. You'll have to switch to ktor-io.
s

Sebastien Leclerc Lavallee

03/21/2020, 1:40 PM
So when I see a warning that some klib file was skipped because of ABI version that’s because some library is not ready for my current version of Kotlin?
b

bod

03/21/2020, 2:48 PM
@Dominaezzz hrm are you saying kotlinx-io is now abandonned/deprecated?
d

Dominaezzz

03/21/2020, 2:49 PM
@Sebastien Leclerc Lavallee Yes
s

Sebastien Leclerc Lavallee

03/21/2020, 2:50 PM
@Dominaezzz thanks!
d

Dominaezzz

03/21/2020, 2:50 PM
@bod It's being heavily refactored. The old api had been moved to ktor-io.
b

bod

03/21/2020, 3:40 PM
well, thank you - I'll see what I can do
well apparently the only thig I used is
Closeable
, and for the wrong reasons anyway (I thought that
use(Closeable){}
which is in the stdlib worked, but actually, no, it's a different
Closeable
(it's the Java one!)) 🤦‍♀️
m

mbonnin

03/27/2020, 7:44 PM
I just filed this before finding this thread: https://github.com/Kotlin/kotlinx-io/issues/105
Would okio be a viable alternative ?
d

Dominaezzz

03/27/2020, 10:16 PM
ktor-io
is were it has been moved to. Use that for now.
👍 2