https://kotlinlang.org logo
Title
v

Vincent Chen

02/03/2020, 9:12 AM
Hi , My Kotlin-Native Project use androidNativeArm64/32/x64/x86 which implementation can i use?? (i got error with below)
implementation("io.ktor:ktor-client-android:$ktor_version")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-curl:$ktor_version")
....
I need to use HttpClient() Thanks
c

cy

02/03/2020, 1:21 PM
Looks like you need curl but you'll need to package and ship .so files yourself . Other engines don't work on native. The other alternative is to call jvm from native and use ktor-client-android in kotlin/jvm part. Both don't look like easy solution. ktor cio engine is not ready for native yet
d

Dico

02/04/2020, 12:07 PM
Do you have the correct bintray repositories configured?