Dagger not able to inject into InjectedBaseActivityTest #3

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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Show comment
Hide comment
@twelve17

twelve17 Mar 3, 2015

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

twelve17 commented Mar 3, 2015

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

@twelve17 twelve17 closed this Mar 3, 2015

@BackPackerDz

This comment has been minimized.

Show comment
Hide comment
@BackPackerDz

BackPackerDz May 1, 2015

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

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

@JohannHei

This comment has been minimized.

Show comment
Hide comment
@JohannHei

JohannHei Jun 18, 2015

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

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