Davide Giuseppe Farella
10/29/2022, 6:53 AMorg.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
…
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
…
Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn’t inline method call: CALL ‘public final fun <get-current> (): T of androidx.compose.runtime.CompositionLocal [inline] declared in androidx.compose.runtime.CompositionLocal’ type=android.content.Context origin=GET_PROPERTY
Method: null
File is unknown
The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.codegen.inline.SourceCompilerForInlineKt.getMethodNode(SourceCompilerForInline.kt:118)
…
Caused by: java.lang.IllegalStateException: couldn’t find inline method Landroidx/compose/runtime/CompositionLocal;.getCurrent()Ljava/lang/Object;Any idea? I’m already going crazy 😄 Currently, I got a couple of KMP modules and a couple of Android one, but I also tried changing the KMP to plain JVM, without any improvement
Davide Giuseppe Farella
10/29/2022, 10:19 AM