I am new to Dagger 2. I have 2 Activities, I want to use injected ViewModel for both. Here is my ViewModuleFactory :
@Singleton public class
Using the @contrubutesAndroidInjector requires an additional annotationProcessor.
Add this line to your gradle build file:
annotationProcessor 'com.google.dagger:dagger-android-processor:2.11'