I'm trying to learn Dagger. But when I try to create a new object through a component with a Dagger prefix, it tells me "cannot resolve symbol". Searching online, apparently I'm supposed to include something like this:
dependencies {
compile files('libs/dagger-2.8.jar')
compile files('libs/dagger-compiler-2.8.jar')
...
apt 'com.google.dagger:dagger-compiler:2.8' code generation
}
But this is the error I get:
Error:Cause: unable to find valid certification path to requested target
It seems to recognize the apt command but not 'com.google.dagger:dagger-compiler:2.8'. Anyone know how to solve this..?
Thanks