Rohan Maity

    Rohan Maity

    3 years ago
    I have uploaded my multiplatform library to bintray. It also has
    .klib
    file on bintray . I am try to use that library in Kotlin/Native Linux application, I have added dependency Under target
    linuxX64{}
    closure
    dependencies {
                linuxImplementation 'io.kaen.dagger:KParser-linux:0.0.4'
            }
    But it throws the exception for building
    Could not find "/home/kaendagger/.gradle/caches/modules-2/files-2.1/io.kaen.dagger/KParser-linux/0.0.4/5994e54132b46843da097a56347c8c8a3a7e44a9/KParser-linux-0.0.4.klib" in [/home/kaendagger/IdeaProjects/KparserExecTest, /home/kaendagger/.konan/klib, /home/kaendagger/.konan/kotlin-native-linux-1.1.2/klib/common, /home/kaendagger/.konan/kotlin-native-linux-1.1.2/klib/platform/linux_x64].
    Do I have to manually download klib file and include it ?
    @gildor any idea 😅
    My Library is added to project. But when building. It doesn't find the library
    Dominaezzz

    Dominaezzz

    3 years ago
    Try changing
    linuxImplementation
    with
    implementation
    ?
    Rohan Maity

    Rohan Maity

    3 years ago
    Ahh I figured out . I put
    dependencies closure
    in targets Linux closure. I was supposed to put under
    sourceSets
    closure Thanks @Dominaezzz 😃