title: Dagger and databinding
body: <p>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"</p>
  
  <p>Can I find the actual error that's causing this using some gradle technique? Also is @Inject really supported with databinding?</p>
  
  <p>Edit:</p>
  
  <p>Code is exactly the same as <a href="https://github.com/googlesamples/android-architecture/tree/todo-mvvm-databinding/" rel="nofollow noreferrer">https://github.com/googlesamples/android-architecture/tree/todo-mvvm-databinding/</a></p>
  
  <p>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</p>