I am using dagger2 library. whenever I am trying to run my project is says not able to create instance of view model class.
main activity where I am trying to create
The solution for me was injecting the activity because I was using Dagger2
AndroidInjection.inject(this);