【问题标题】:ktor client multiplatform for raspberry pi?用于覆盆子 pi 的 ktor 客户端多平台?
【发布时间】:2020-12-09 17:03:10
【问题描述】:

是否有机会在 Raspberry Pi 上使用 ktor 客户端(多平台)或者该平台尚不支持?



kotlin {
    linuxArm32Hfp("native") {
        binaries {
            executable {
                entryPoint = "main"
                baseName = "example"
            }
        }
        compilations.main.cinterops {
            linuxCanInterop {
                ...
            }
        }
    }
}

dependencies {
    // ??
    implementation("io.ktor:ktor-client-curl:1.4.1")
    nativeMainImplementation("io.ktor:ktor-client-curl:1.4.1")
}

【问题讨论】:

    标签: raspberry-pi ktor


    【解决方案1】:

    Ktor 现在不支持树莓派。主要原因是kotlinx.coroutines kotlinx.serialization 库也不支持这个平台。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-03
      • 1970-01-01
      相关资源
      最近更新 更多