No static method Instance(Lorg/kodein/di/DIAware;Lorg/kodein/type/TypeToken;Ljava/lang/Object;)Lorg/kodein/di/DIProperty
andremion opened this issue · comments
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?
Closed as I found it was a dependency conflict with other transitive dependencies