Does anyone know how to successfully suppress comp...
# compose
k
Does anyone know how to successfully suppress compose compiler warning for Kotlin version? I’m trying to run a project with KT 1.6.20, compose 1.1.1. I’ve added compiler options:
Copy code
kotlinOptions {
    freeCompilerArgs = listOf("-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true")
  }
But then I get this error
Copy code
java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.ir.expressions.impl.IrSetFieldImpl org.jetbrains.kotlin.ir.builders.ExpressionHelpersKt.irSetField(org.jetbrains.kotlin.ir.builders.IrBuilderWithScope, org.jetbrains.kotlin.ir.expressions.IrExpression, org.jetbrains.kotlin.ir.declarations.IrField, org.jetbrains.kotlin.ir.expressions.IrExpression)'
From Kotlin compiler
📵 1
🚫 1
f
Related thread
Also there was some info about experimental versions of compiler.
k
ah, I wrongly assumed that my
NoSuchMethod
error comes from wrong use of compile arg
Thanks Filip, that answers my question 🙏
👌 1