Does Dagger 2 and Android annotations work?

I read here that Android annotations have been updated to work with dagger (1), but I'm not sure if it is automatically applied to dagger 2.

Does anyone use AA and Dagger 2 together?

Thank.

+4
source share
1 answer

I use dagger2, AndroidAnnotations and ButterKnife (for adapters) all together, and they work fine. One difference from the note from dagger1 is that you must introduce each specific class (and not just the parent activity) that @Inject declares . But you do not need to enter classes created by AndroidAnnotations, because the fields you enter are not declared in the generated classes.

+4

All Articles