Internal dependency injection using Dagger2
问题 I want to use Dagger2. Say I have the following dependencies: Class A depends on class B Class B depends on class C I tried to create a Module that provides B and C, and a Component that provides A, however only B is injected into A, and the reference to C in B remains null. What is the classes structure I need to implement using dagger? 回答1: You can either use constructor injection or field injection; and either constructor-inject or module-inject. Constructor-@Inject might be buggy, because