Assuming you have something like:
class FirstClass {
@Inject Integer firstClassField;
}
then:
class SecondClass extends FirstClass {
@Inject String secondClassField;
void injectMembers() {
DaggerComponent.builder().build().inject(this);
}
}
Dagger 2 generates members injectors for all classes with @Inject
annotated fields i.e., candidates for property injection. This is regardless of whether you are actually requesting injection for that class somewhere in your code or not.
In the contrived example above, the FirstClass_MembersInjector
will be generated even though it is not used in the generated Dagger Component.
The solution to your problem probably lies with better organisation your project rather than trying to configure unusual behaviour for Dagger 2.