Join GitHub today
Frequent no inject register for members, but works intermittently. #414
I have just finished switching over from RoboGuice and have come across an intermittent issue in my project. My current Dagger version is 1.2.1 and I am using AndroidAnnotations 3.0.1.
I am trying to inject some members into an annotated class (uk.co.connectek.activities.LoginActivity_) but frequently get the message:
"no inject registered for members/uk.co.connectek.activities.LoginActivity_"
My inject module looks like:
And I call:
Once this error starts occurring I change the line above my module from:
and everything works correctly again until I do another build, at which point I revert the @module annotation back to
When stepping through graph.inject I notice the keys are incorrect. When it fails it is trying to look up the key members/uk.co.connectek.activities.LoginActivity_ but the injectableTypes member on DaggerObjectGraph has the key members/LoginActivity_.
If required I can provide more sample code, or even my project.