https://kotlinlang.org logo
r

Rohan Maity

06/10/2019, 11:10 AM
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
Copy code
dependencies {
            linuxImplementation 'io.kaen.dagger:KParser-linux:0.0.4'
        }
But it throws the exception for building
Copy code
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
d

Dominaezzz

06/10/2019, 12:00 PM
Try changing
linuxImplementation
with
implementation
?
r

Rohan Maity

06/10/2019, 12:21 PM
Ahh I figured out . I put
dependencies closure
in targets Linux closure. I was supposed to put under
sourceSets
closure Thanks @Dominaezzz :)
👍🏼 1