When running my program from AS, I usually get this error:
error: cannot find symbol class DaggerActivityComponent
I've tried the remedies suggested at Cannot find symbol class "Generated" for Dagger 2, but the problem continues. I can get around the error by doing clean and rebuild before run. This is a pain, of course. I don't see a pattern for when the error does not occur.
I'm using Dagger version 2.0.2
In build.gradle, I've made the suggested changes: (I was unable to use SNAPSHOT-2.1 version of Dagger)
//Required by Dagger2
compile 'org.glassfish:javax.annotation:10.0-b28'
// Alternate to above as
// provided 'javax.annotation:jsr250-api:1.0'
compile "com.google.dagger:dagger:$DAGGER_VERSION"
The other members on my team are not experiencing this, so I suspect it might be related to my configuration for Android Studio.
Thank you for any further ideas.