Backend Internal error: Exception during psi2ir
Asked Answered
R

2

6

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.

Righthander answered 9/3, 2022 at 16:2 Comment(1)
in Intellij IDEA IDE when I got the error I had to invalidate cache to resolve the issue. File -> invalidate caches to achieve this.Art
P
3

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

try 1.6.10

Pollitt answered 11/3, 2022 at 4:50 Comment(0)
R
1

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

Rocket answered 21/6, 2022 at 19:2 Comment(1)
Instead of bold text, use code snippet to write any command or anything which is to be copy and pasted as it is.Appel

© 2022 - 2024 — McMap. All rights reserved.