b

    bod

    2 years ago
    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:
    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!
    Luoqiaoyou

    Luoqiaoyou

    2 years ago
    try to update your IDE Kotlin/Native plugin, it works for me
    b

    bod

    2 years ago
    well, this error happened on the command line, so not related to the IDE, right?
    Dominaezzz

    Dominaezzz

    2 years ago
    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

    2 years ago
    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

    2 years ago
    @Dominaezzz hrm are you saying kotlinx-io is now abandonned/deprecated?
    Dominaezzz

    Dominaezzz

    2 years ago
    @Sebastien Leclerc Lavallee Yes
    s

    Sebastien Leclerc Lavallee

    2 years ago
    @Dominaezzz thanks!
    Dominaezzz

    Dominaezzz

    2 years ago
    @bod It's being heavily refactored. The old api had been moved to ktor-io.
    b

    bod

    2 years ago
    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!)) 🤦‍♀️
    mbonnin

    mbonnin

    2 years ago
    I just filed this before finding this thread: https://github.com/Kotlin/kotlinx-io/issues/105
    Would okio be a viable alternative ?
    Dominaezzz

    Dominaezzz

    2 years ago
    ktor-io
    is were it has been moved to. Use that for now.