Backend Internal error: Exception during psi2ir

2.8k Views Asked by At

I've been trying to use kodein in my android studio and I'm getting this issue

The root cause org.jetbrains.kotlin.psi2ir.generators.ErrorExpressionException was thrown at: org.jetbrains.kotlin.psi2ir.generators.ErrorExpressionGenerator.generateErrorCall(ErrorExpressionGenerator.kt:99) null: KtCallExpression: kodein() at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:239)

here is how I'm calling it in activity

override val kodein by kodein()

I've tried updating all my dependencies, however still no result,

Any help would be appreciated.

2

There are 2 best solutions below

0
On BEST ANSWER

This is not a Kodein issue. this is a kotlin issue. Please try updating your kotlin version.

try 1.6.10

1
On

we need to import import org.kodein.di.android.kodein for kodein()