Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 8
    This. I wasted nearly an hour because of this. I wish Android studio would show the actual error on databinding issues. Commented Sep 11, 2017 at 6:41
  • 1
    Was there any way you can modify the compiler errors to tell you what file did this? Or was it a lot of guessing? Commented Nov 26, 2018 at 21:08
  • 2
    @AdamMc331 unfortunately, I didn’t try to do it. It’s easy to open layouts files and see that lint marked wrong tokens Commented Nov 26, 2018 at 22:32
  • Thanks. Wasted a lot of time on this. Issue was that I had copied an xml file from a previous version and the path of the viewModel was changed in previous model. Once I rechecked and renamed it, the error was fixed. Commented Nov 12, 2024 at 19:16