https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

spierce7

04/25/2019, 7:38 PM
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

gildor

04/26/2019, 1:25 AM
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

spierce7

04/26/2019, 4:54 AM
It ended up being a scoping issue. I needed to say
project.tasks...
. I'm also seeing that ObsoleteCoroutinesApi issue. Good call
👍 1
2 Views