Android Dagger Dependency Injection fails on private Fields

前端 未结 3 1402
既然无缘
既然无缘 2020-12-18 19:29

I\'m new to dagger (though I have experience with DI from working on Java EE WebApps using Weld).

What I\'m trying to do is to inject a dependency into a class. The

3条回答
  •  一生所求
    2020-12-18 20:04

    Just the remove the private to set the visibility of your field to package friendly.

    Dagger doesn't support injection on private fields.

提交回复
热议问题