ondato / ondato-sdk-android

4 stars 3 forks source link

java.lang.NoSuchMethodError: No static method bind #13

Open udayvhits opened 1 month ago

udayvhits commented 1 month ago

Getting crash app when i implement this SDK "java.lang.NoSuchMethodError: No static method bind(Lkotlin/Pair;Lkotlin/reflect/KClass;)Lkotlin/Pair; in class Lorg/koin/dsl/DefinitionBindingKt; or its super classes (declaration of 'org.koin.dsl.DefinitionBindingKt' appears in /data/app/~~aKsXJjHANC5Wem2CqYEkKg==/com.example.kycdemo-Q7k7O-NB7_9FPhVwn_1YFQ==/base.apk!classes10.dex)"

this is the error right now i am facing image

here is my project implementation demo project link where i am getting the crash when start identification : https://github.com/udayvhits/OnDatoDemo

Can you please identify what i am doing wrong..

edgaras-simanavicius commented 1 month ago

This is probably caused by the koin dependency not being backwards compatible. If you have the option, try to downgrade to kotlin 1.6.21 and koin 3.2.4. We are working on a version with better compatibility.