https://kotlinlang.org logo
#compose
Title
# compose
k

krzysztof

04/05/2022, 11:33 AM
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

Filip Wiesner

04/05/2022, 11:36 AM
Related thread
Also there was some info about experimental versions of compiler.
k

krzysztof

04/05/2022, 11:38 AM
ah, I wrongly assumed that my
NoSuchMethod
error comes from wrong use of compile arg
Thanks Filip, that answers my question 🙏
👌 1
4 Views