我按照此处和此处的Kotlin 文档选择加入kotlin.ExperimentalUnsignedTypes
整个模块。我的模块build.gradle
现在看起来像这样:
android {
...
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalUnsignedTypes"
}
Run Code Online (Sandbox Code Playgroud)
Lint 仍在抱怨 ExperimentalUnsignedTypes,编译时我收到此警告:
> Task :myModule:compileDebugKotlin
w: Flag is not supported by this version of the compiler: -Xopt-in=kotlin.ExperimentalUnsignedTypes
Run Code Online (Sandbox Code Playgroud)
我的科特林版本是:1.3.61
归档时间: |
|
查看次数: |
5788 次 |
最近记录: |