Getting rid of Dagger 2 warning “Generating a MembersInjector”

后端 未结 2 1080
执笔经年
执笔经年 2021-02-12 03:28

Given the following classes

abstract class AbstractClass {
    @Inject SomeDependency someDependency;
}

class SomeClass extends AbstractClass {
    @Inject Anot         


        
相关标签:
2条回答
  • 2021-02-12 03:56

    As of Dagger 2.9 these warnings are off by default.

    0 讨论(0)
  • 2021-02-12 04:12

    Solution could be: define onCreate() in Abstract class only

    0 讨论(0)
提交回复
热议问题