spierce7
12/11/2018, 3:02 AMThis declaration is experimental and its usage should be marked with '@kotlinx.coroutines.ExperimentalCoroutinesApi'
Is there a way I can declare that we are using experimental coroutines api in the build.gradle
, and thus get rid of all these warnings everywhere? Or am I forced to go to every file, and explicitly annotate it?gildor
12/11/2018, 3:15 AMcompileKotlin {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
}
bdawg.io
12/11/2018, 3:46 AM"-Xuse-experimental=kotlin.Experimental"
toogildor
12/11/2018, 3:50 AMspierce7
12/11/2018, 6:20 AMcompileKotlin
task doesn't exist. Any suggestions?gildor
12/11/2018, 6:26 AMDico
12/11/2018, 6:27 AMgildor
12/11/2018, 6:27 AMtasks.withType(KotlinCompile)
to apply to all tasks of this typeDico
12/11/2018, 6:27 AMgildor
12/11/2018, 6:28 AMDico
12/11/2018, 6:28 AMgildor
12/11/2018, 6:28 AMkotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi", "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
spierce7
12/11/2018, 6:37 AMtasks.withType(KotlinCompile) {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"]
}
Could not get unknown property 'KotlinCompile' for project ':actions-android' of type org.gradle.api.Project.
gildor
12/11/2018, 6:38 AMorg.jetbrains.kotlin.gradle.tasks.KotlinCompile
spierce7
12/11/2018, 6:39 AMe: Experimental API marker kotlinx.coroutines.ExperimentalCoroutinesApi is unresolved. Please make sure it's present in the module dependencies
gildor
12/11/2018, 6:57 AMspierce7
12/11/2018, 2:30 PM