Sai Charan
06/08/2026, 4:43 PMstartKoin<App> { } in the Android app. However, in the Kotlin toolchain setup, doing this fails to find my shared definitions at runtime. As a workaround, I'm currently forced to initialize the modules manually using modules(AppModule().module()).joffrey
06/09/2026, 6:07 AMjoffrey
06/10/2026, 12:23 PMSai Charan
06/10/2026, 12:45 PMorg.koin.core.error.NoDefinitionFoundException .
However, if I manually register the generated module by calling:
modules(AppModule().module())
inside startKoin, the app runs without any issues.
I have the same Koin Compiler setup in another project that uses a standard Gradle setup, and there I only need to call:
startKoin<App> { }
and everything works correctly.
I'm not sure if I'm missing something in my Kotlin Toolchain project configuration.joffrey
06/10/2026, 12:48 PMjoffrey
06/10/2026, 12:48 PMSai Charan
06/10/2026, 12:51 PMSai Charan
06/10/2026, 12:51 PMSai Charan
06/10/2026, 12:52 PM