I have a MVVM project where I have ViewModel classes extending BaseObservable. Now if put @Inject class in my ViewModel then compilation fails with many errors like: "error: package xxx.databinding does not exist"
Can I find the actual error that's causing this using some gradle technique? Also is @Inject really supported with databinding?
Edit:
Code is exactly the same as https://github.com/googlesamples/android-architecture/tree/todo-mvvm-databinding/
In that I have added dagger and I'm trying to @Inject a repository into a view model that extends BaseObservable. As soon as I add @Inject into the view model then I cant compile