fabioCollini / DaggerMock

A JUnit rule to easily override Dagger 2 objects
Apache License 2.0
1.16k stars 91 forks source link

dagger.android.ActivityKey not found #101

Closed theapache64 closed 4 years ago

theapache64 commented 4 years ago

I tried to compile the RealWorldAppInjector example. but am getting

/home/user/Desktop/DaggerMock/RealWorldAppInjector/src/main/java/it/cosenonjaviste/daggermock/realworldapp/MainActivityBindingModule.java:7: error: cannot find symbol
import dagger.android.ActivityKey;
                     ^
  symbol:   class ActivityKey
  location: package dagger.android
fabioCollini commented 4 years ago

ActivityKey was removed in Dagger 2.19, I have updated the example to use ClassKey instead. Thanks for reporting it!