0
Cannot create an instance of class com.example.myapplication.CharactersViewModel

I am finishing pagination and I get such a stack of errors (first screen). On the second photo is my MainActivity. And on the third ViewModel. As I understand it, he cannot create an instance of the ViewModel class, but I don’t know why(

1enter image description here 2enter image description here 3enter image description here

Happy
  • 79
  • 8

1 Answers1

0

There could be more than one reason. There is an issue already opened. Did you check here before? If not, the solution can be here.

Cannot create an instance of class ViewModel

miracozkan
  • 26
  • 1
  • 3