You didn’t inject the root graph ie. where your dependencies are living, and that is your DaggerXXXXComponent generated by dagger.
Provision the root graph, and let it inject the dependencies of your Application class.
Amirul Zin
03/11/2020, 1:38 AM
In short:
Copy code
override fun androidInjector(): AndroidInjector<Any> {
//Returns your DaggerXXXComponent here
}
j
Joan Colmenero
03/11/2020, 7:06 AM
The crash happened when I start using inject constructor and inject for interfaces