Closed sockeqwe closed 9 years ago
This seems like version skew. ValidationProcessor is part of Dagger 1, not Dagger 2. ComponentProcessor is the only processor that should be running on your paths. You seem (in this example) to be missing the actual project gradle file which would show us what your deps are. Can you please show that, and while you'er there, check and make sure you're pulling in the right dependencies?
You are right! Sorry for that! I was migrating my app from dagger1 to dagger2. In fact the dependencies were declared correctly, but somehow the dagger1 compiler was still used. Even cleaning the project didn't helped. After deleting cache directories by hand it works. I think it was a problem on my machine, because I can't reproduce that on another pc (using the same project). Thanks for your help.
PS: if you have time, do you have any recommendation for unit testing on android with dagger2? http://stackoverflow.com/questions/29259688/injecting-test-module-with-dagger2
Hi, I'm trying to use Dagger2 in an android application. Im using android-apt plugin for annotataion processing. Unfortunately I get the following error while building my app with gradle:
I only have one module and one component so far:
I'm using java 7 on my mac book pro:
and my gradle android config looks like this: