Issue
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.
Solution
This is not a Kodein issue. this is a kotlin issue. Please try updating your kotlin version.
try 1.6.10
Answered By - Jaspreet Singh
Answer Checked By - Marie Seifert (JavaFixing Admin)