Closed farhazulmullick-pw closed 8 months ago
Same problem, can anyone fix it?
your Koin instance is not yet start while you use Test
, which is extending KoinComponent
. Either you delay it elsewhere, after the KoinApplication block. Either you can start Koin with startKoin
before using KoinApplication
If i call this
KoinApplicationComposable
from MainActivity then if i try to inject any dependency usingby inject()
in any class withKoinComponent
interface implemented. I get a runtime exceptionjava.lang.IllegalStateException: KoinApplication has not been started
.Further this runtime exception is not thrown if startKoin {} is called in Application class.