Databinding - error: cannot find symbol variable

74 views Asked by At

I renamed baseline_check_circle_black_18dp drawable to status_paid. However, I'm getting this:

error: cannot find symbol variable baseline_check_circle_black_18dp

Have update Android Studio to 3.5.3. Also tried Invalidating cache/Restart. However, unable to resolve the issue.

The new drawable name is not being updated in the binding classes (which are aut-generated by data-binding library). How to regenerate Binding classes?

1

There are 1 answers

0
Harshal Kshatriya On

An xml file had the old name baseline_check_circle_black_18dp in it. That was causing the problem. On changing that to status_paid, it solved the issue.