Cannot create an instance of class ViewModel

后端 未结 23 2661
[愿得一人]
[愿得一人] 2020-12-05 12:37

I am trying to write a sample app using Android architecture components and but even after trying for days I could not get it to work. It gives me the above exception.

23条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 13:16

    I'm using this example android-arcuitecture-component BasicSample to make a new project, facing a similar error log, found I did'n change de applicatio name

    AndroidManifest.xml

    and that was my error, to fix put the aplicacion name to de BasicApp, this class is implement in the example.

    ...
    

提交回复
热议问题