Edwin
06/10/2025, 9:52 PMCaused by: org.koin.core.error.InstanceCreationException: Could not create instance for '[Singleton: 'com...UpdateInteractor']'
base on the full trace log, it seems to be triggered by a dependency required on MainActivity -> onStart()
But I have all the injectors well defined on the Koin modules.
After a lot of back and forth... I found a way to reproduce similar issue in debug env, which is in the Koin module class, when creating the module setting the parameter createdAtStart = true
(by default false), it makes the app crash when it's starting... throwing similar trace log than prod.
It seems to be like a race condition issue, but still figuring out what is the real cause of that.
If anyone have faced any similar issue dealing with Koin dependencies, I would appreciate any help.
I found someone here in the past faced similar issue, but didn't post any solution.John Matthews
06/11/2025, 5:37 PM