coroutinedispatcher
11/08/2020, 4:49 PMAhmed Ibrahim
11/09/2020, 11:53 AMRafal
11/10/2020, 8:14 AMbuild
folder if you have a generated code for your ViewModel (in your case it might be a LoginViewModel_AssistedFactory
) if it is not present it might be a problem with your gradle setupimplementation 'com.google.dagger:hilt-android:2.28-alpha'
kapt 'com.google.dagger:hilt-android-compiler:2.28-alpha'
implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02"
kapt 'androidx.hilt:hilt-compiler:1.0.0-alpha02'
This setup made it working.. after one or two build cleans 😛coroutinedispatcher
11/10/2020, 10:30 AM@Inject
constructor or @ViewModelInject
constructor because I discovered that for this case is not possible https://github.com/google/dagger/issues/1865#issuecomment-642825286 to use @ViewModelInject
. I would have to go with another approach I’m afraid.