My project was now building up good. Suddenly it started showing error in all DataBinding generated files. I cant find a way to get through it.
Asked
Active
Viewed 707 times
-3
-
https://stackoverflow.com/a/49810207/7666442 – AskNilesh Apr 16 '18 at 07:58
-
Sorry, it doest suit the answer. – Insane Developer Apr 16 '18 at 08:06
-
What are the errors? – Paresh P. Apr 16 '18 at 09:07
-
Cannot find databinding file – Insane Developer Apr 16 '18 at 09:34
2 Answers
0
just invalidate cache and restart android studio, if still it don't work just try deleting build and .gradle folder.

Akshay Panchal
- 695
- 5
- 15
0
Databinding removes all boilerplate codes, but it's hard to debug. If you get any sort of databinding error, kindly check the build error message properly. The errors are pointed out in the build message.
Note: If any of the databinding code has an error, you will get error for all databinding codes. So, it gets quite tough to get which file has the actual issue. The issue occurs mainly if you refractor any view id. Have a close look at at which places, you ids are getting changed.

Insane Developer
- 1,014
- 10
- 19