Closed sunny0092 closed 5 years ago
Your forgot modules()
section in your startKoin declaration.
Would be more modules(appComponent)
in your case
val appModule = module {
//Single instance from repository
single
//fragments
single{ FragmentListAudiosSeqAdapter() }
//Repository
single { RepositoryLocal() }
//RX
single { CompositeDisposable() }
viewModel {} //<<<<<<<<<<<<<<< It not find
//Factory
factory { MainActivityPresenter(get(), get(), get(), get()) }
factory { ListAudiosSeqFragmentPresente(get(), get(), get(), get()) }
}
Why not works for me ? I'm using the last version koin
Describe the bug Please help me Below example, I have followed the instructions, because of something that it does not work.
To Reproduce
Application
Use code like this in module:
Activity
Error
Koin project used and used version (please complete the following information): org.koin:koin-android-viewmodel:2.0.0
Thanks