Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dagger not able to inject into InjectedBaseActivityTest #3
I'm not sure yet, but I'm guessing it's likely due to a change in Dagger 2 (since this is using the snapshot version), but compilation fails on this project with this error:
If, indeed, Dagger 2 prevents this type of injection, I'm having a hard time seeing how to make this example work other than perhaps putting all the concrete test activity classes in the 'debug' variant source tree. Any ideas?
I'm using Android Studio 1.1.0.
Steps to reproduce this error: Clone this git module. Import the project into Android Studio. Go to 'Build' -> 'Make Module'.