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.
If constructor of your viewmodel is public and accepts only application then make sure you can create your own model without ViewModelProvider. Error message might be much more clear: