public class BaseApplication extends DaggerApplication {
@Override
protected AndroidInjector<? extends DaggerApplication> applicationInjector() {
AppComponent appComponent = DaggerAppComponent.builder()
.application(this)
.childComponent(DaggerChildComponent.create())
.build();
appComponent.inject(this);
return appComponent;
}
}
This is base module, base component(appComponent) can use application, but other modules have no application, how to write code? Or else other modules will throws exception No injector factory bound for Class