Hi all! I’m trying to use compose on our existing ...
# compose
c
Hi all! I’m trying to use compose on our existing android project. Followed the guideline here https://developer.android.com/jetpack/compose/interop/adding. Keep getting this error.
org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.copyValueParametersToStatic(IrUtils.kt:262)
Figured out that this error occurs when call this function inside of coroutine.
Copy code
@JvmStatic fun getInstance(): DataManager =
instance ?: synchronized(this) {
    instance ?: DataManager().also {
        instance = it
    }
}
Does anyone know why?