Skip to content Skip to sidebar Skip to footer

How To Configure Dagger In IntelliJ

I downloaded dagger as it seems to be a good option for dependency injection in Android. But I have some troubles integrating the compiler. Are there any hints regarding the right

Solution 1:

The dagger-compiler dependencies are not being found.

Dagger, JavaWriter and javax.inject are also required.
(For 1.2+ Guava is also required - guava discussion)

Try putting those .jars in the same folder as dagger-compiler and then adding all 4 also as annotation processors. This works for Eclipse and should for IntelliJ too.

Alternatively make 1 "fat" jar with all those dependencies together. See issue 360 for details.

Files may be downloaded from Maven:


Post a Comment for "How To Configure Dagger In IntelliJ"