Tired of having to annotate a bunch of methods wit...
# announcements
t
Tired of having to annotate a bunch of methods with
@ExperimentalStdlibApi
to a bunch of methods, I changed my Kotlin Compiler Preferences in AndroidStudio to include
-Xopt-in=kotlin.ExperimentalStdlibApi
in the “Additional command line parameters” (as per the instructions here: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-experimental-stdlib-api/). However, I’m still getting build failures when I remove the annotations and depend on the global command line parameter. What am I not getting?
i
You should put that argument in your gradle build, in `kotlinOption.freeCompilerArgs`: https://kotlinlang.org/docs/reference/using-gradle.html#compiler-options There's no need to specify it in Kotlin Compiler Preferences, it should be imported from the gradle build.
🎉 1