David Liu

    David Liu

    1 year ago
    Hi, I am converting my android library to support multiplatform (android & ios) but I have encountered the dependencies issue with coroutines. I am using
    Kotlin v1.5.30
    and
    coroutines v1.5.2-native-mt
    . Does anyone have experienced the same issue?
    w: skipping /Users/davidliu/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosx64/1.5.2-native-mt/fd419ceca95f3403fe6e22ec714dd04a746656a/kotlinx-coroutines-core.klib. Incompatible abi version. The current default is '1.4.2', found '1.5.0'. The library produced by 1.5.30 compiler
    
    e: Could not find "/Users/davidliu/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosx64/1.5.2-native-mt/fd419ceca95f3403fe6e22ec714dd04a746656a/kotlinx-coroutines-core.klib" in [/Users/davidliu/Repostories/android-library, /Users/davidliu/.konan/klib, /Users/davidliu/.konan/kotlin-native-prebuilt-macos-1.5/klib/common, /Users/davidliu/.konan/kotlin-native-prebuilt-macos-1.5/klib/platform/ios_x64]
    I have solved this issue by replacing
    coroutines
    wtih
    1.5.0-native-mt
    andylamax

    andylamax

    1 year ago
    That is looking like a caching issue. But I am using 1.5.2-native-mt, together with 1.5.30
    No problems so far
    Stefan Oltmann

    Stefan Oltmann

    1 year ago
    Same here. 1.5.2-native-mt and 1.5.30 seem to be compatible for my app, too
    David Liu

    David Liu

    1 year ago
    Yeah, I think it’s a caching issue. Thanks for all your feedback.
    Lucas Schiavini

    Lucas Schiavini

    5 months ago
    I'm having the same issue here https://youtrack.jetbrains.com/issue/KT-51677 . But I don't use coroutines on this module