Im using the following, and It doesn't seem to be ...
# coroutines
s
Im using the following, and It doesn't seem to be removing the warnings from my project. Can anyone suggest an alternative?
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
            kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
        }
g
Yes, it should work. Maybe you didn’t apply it to all modules which use ExperimentalCoroutinesApi. This is per-module compilatiomn param
Also, are you sure that you have a waning that complains about this annotation, maybe you have some other warning, for example about ObsoleteCoroutinesApi
s
It ended up being a scoping issue. I needed to say
project.tasks...
. I'm also seeing that ObsoleteCoroutinesApi issue. Good call
👍 1