android: data binding error: cannot find symbol class

I consistently run into this problem. I believe it has to do with android studio not being aware of dynamically generated files. If you have everything else right for databinding try to File > Invalidate Caches/Restart… and select Invalidate Caches and Restart. Then try and import the BR file… it should import fine.

You may have to throw in a Clean and Rebuild.

Leave a Comment