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.
In my case I needed to use a ListItemViewModelFactory to pass in a parameter to my view model.