https://kotlinlang.org logo
#koin
Title
# koin
a

Alejandro Rios

06/23/2022, 4:54 PM
Hello 👋🏼, I've try to migrate from Koin
3.1.5
to
3.2.0
, I've changed some declarations from
single { }
to
singleOf()
and from
viewModel { }
to
viewModelOf()
but after clean and reun the app I'm getting this error:
Copy code
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/koin/dsl/ModuleKt;
        at com.metamap.sdk_components.di.AppModuleKt.<clinit>(AppModule.kt:26)
        at com.metamap.sdk_components.di.AppModuleKt.getApplicationModule(AppModule.kt:26)
        at com.metamap.metamap_sdk.SdkStartUpProvider.<init>(SdkStartUpProvider.kt:25)
        at java.lang.Class.newInstance(Native Method)
        at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:121)
        at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6380)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:5938)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5853)
        at android.app.ActivityThread.access$1100(ActivityThread.java:199)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "org.koin.dsl.ModuleKt" on path:
any idea of what am I missing?
n

Nick

06/23/2022, 9:01 PM
eeek, im runing into the same issue
did you solve it?
a

Alejandro Rios

06/23/2022, 9:18 PM
Nope 🥲
n

Nick

06/23/2022, 10:37 PM
(for the record, my issue was two different koin versions. one in our own internal library and one in our app module. )
65 Views