coroutinedispatcher11/08/2020, 4:49 PM
Ahmed Ibrahim11/09/2020, 11:53 AM
Rafal11/10/2020, 8:14 AM
folder if you have a generated code for your ViewModel (in your case it might be a
) if it is not present it might be a problem with your gradle setup
This setup made it working.. after one or two build cleans 😛
implementation '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'
coroutinedispatcher11/10/2020, 10:30 AM
constructor because I discovered that for this case is not possible https://github.com/google/dagger/issues/1865#issuecomment-642825286 to use
. I would have to go with another approach I’m afraid.