I’m testing out Kodein in Android and I’m getting ...
# kodein
d
I’m testing out Kodein in Android and I’m getting the following error
No provider found for bind<PersistenceService>() with ? { ? }
In the list of registered bindings I can see
bind<PersistenceService>() with scopedSingleton(androidContextScope) { Context -> PersistenceService }
This is how I defined the binding
Copy code
bind<PersistenceService>()  with scopedSingleton(androidContextScope) {
        ctx: Context -> PersistenceService(ctx.getSharedPreferences("KodeinTest", Context.MODE_PRIVATE)) }
This is referenced in
bind<GreetPresenter>() with scopedSingleton(androidActivityScope) { GreetPresenter(it as GreeterView, instance(), instance()) }
where one of the
instance()
in the
GreetPresenter
constructor is of type
PersistenceService