Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dagger not able to inject into InjectedBaseActivityTest #3

Closed
twelve17 opened this issue Mar 3, 2015 · 3 comments
Closed

Dagger not able to inject into InjectedBaseActivityTest #3

twelve17 opened this issue Mar 3, 2015 · 3 comments

Comments

@twelve17
Copy link

@twelve17 twelve17 commented Mar 3, 2015

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:

Error:android.test.ActivityInstrumentationTestCase2 has type parameters, cannot members inject the raw type.

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'.

@twelve17
Copy link
Author

@twelve17 twelve17 commented Mar 3, 2015

Ooops, my apologies. I just saw this: google/dagger#108

@twelve17 twelve17 closed this Mar 3, 2015
@BackPackerDz
Copy link

@BackPackerDz BackPackerDz commented May 1, 2015

Hi, did you solve your problem ? beaucse I have the same issue !

@JohannHei
Copy link

@JohannHei JohannHei commented Jun 18, 2015

I have the same error and didn't find a solution, yet--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.