Why Dagger inject is not working but component.getObject yes
问题 I am trying to use Dagger 2 for instantiating a Retrofit interface. The CloudContactDataStore class injects the RestClient and calls its methods. When I instantiate a CloudContactDataStore object, its RestClient attribute has null value. public class CloudContactDataStore implements ContactDataStore { @Inject RestClient restClient; public CloudContactDataStore() { this.initializeInjector(); } private void initializeInjector() { ApiComponent component = DaggerApiComponent.builder() .apiModule