kosi-libs / Kodein

Painless Kotlin Dependency Injection
https://kosi-libs.org/kodein
MIT License
3.21k stars 174 forks source link

No static method Instance(Lorg/kodein/di/DIAware;Lorg/kodein/type/TypeToken;Ljava/lang/Object;)Lorg/kodein/di/DIProperty #438

Closed andremion closed 1 year ago

andremion commented 1 year ago

I have seen this runtime issue lately without updating any project's dependencies.

java.lang.NoSuchMethodError: No static method Instance(Lorg/kodein/di/DIAware;Lorg/kodein/type/TypeToken;Ljava/lang/Object;)Lorg/kodein/di/DIProperty; in class Lorg/kodein/di/DIAwareKt; or its super classes (declaration of 'org.kodein.di.DIAwareKt'

Initially, this error weirdly started to happen only in the CI, locally was OK. After trying to fix it by upgrading Kodein from 7.10.0 to 7.20.2, alongside AGP, Kotlin, and Gradle versions, it started to happen locally.

Any clue?

andremion commented 1 year ago

Closed as I found it was a dependency conflict with other transitive dependencies