dave08
10/31/2018, 6:07 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi',
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi'
]
}
}
The += adds more options (just in case you already have some elsewhere), and Experimental is for things like Dispatchers.Unconfined.