是否可以避免用 注释我的代码的每个部分@ExperimentalTime?环顾四周后,我在我的 gradle 构建中尝试了这个:
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlin.time.ExperimentalTime"
}
Run Code Online (Sandbox Code Playgroud)
但是尝试构建项目仍然会停止并出现错误,因为我有需要注释的用法。
| 归档时间: |
|
| 查看次数: |
2038 次 |
| 最近记录: |