Kotlin Warnings With Gradle Build
I've been experiencing build performances problems on my Mac since i started converting a project from java to kotlin. I use gradle with Android Studio 3.0.1 The problem is that w
Solution 1:
The warnings that you see are reported by the Kotlin compiler, not by Android Lint, so lintOptions
won't affect them.
Instead, if you want to suppress the warnings, you can configure a single Kotlin compilation task to suppress its warnings:
compileDebugKotlin {
kotlinOptions.suppressWarnings = true
}
Or suppress the warnings from all Kotlin compilation tasks:
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.suppressWarnings = true
}
Though in fact, these warnings should not affect the build performance in any noticeable way.
Post a Comment for "Kotlin Warnings With Gradle Build"