zt
10/12/2022, 12:38 AM@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.material3)
It's wanting me to add This annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
for @OptIn
I tried this but it the warning is still there
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}
Sean Proctor
10/12/2022, 7:01 AMczuckie
10/12/2022, 7:38 AM-opt
otherwise wouldn't the freeCompileArgs be something like:
-some-compile-arg=avalue-opt-in=kotlin.RequiresOptIn
czuckie
10/12/2022, 7:38 AMSean Proctor
10/12/2022, 7:39 AMczuckie
10/12/2022, 7:46 AM