After suppressing the OptIn warning, I was expecting it would go away, but it's still popping up after compile, any way to get rid of it?
@Suppress("OPT_IN_IS_NOT_ENABLED")
@OptIn(ExperimentalMaterialApi::class)
After suppressing the OptIn warning, I was expecting it would go away, but it's still popping up after compile, any way to get rid of it?
@Suppress("OPT_IN_IS_NOT_ENABLED")
@OptIn(ExperimentalMaterialApi::class)
According to this question: How to set Opt in what resolves the problem is adding the following snippet to build.gradle (app)
kotlin.sourceSets.all {
languageSettings.optIn("kotlin.RequiresOptIn")
}