() { component.inject(this);}
在Dagger2中,当将依赖项注入从也包含依赖项的抽象基类扩展的类中时,Dagger会在编译期间显示Generating a MembersInjector for AbstractClass.Prefer to run the dagger processor over
我正在尝试MVVM,Dagger2,Retrofit和Coroutine。现在我有一个问题,我可以成功地将ProfileService注入到我的活动中,但不能注入到我的存储库中。在存储库中,我注入了profileService class ProfileRepository(private val api: NIPApiInterface) {lateinit以下是我的Dagger配置: //AppComponent@Component(