I am using Android Studio 2.0 Preview 4. I\'m using Android SDK tools 25 rc1. This error persists no matter how many times I clean / rebuild project. File->Invalidate Caches
One of the quickest hack i use is rename the xml file back and to.
e.g.
rename abc_layout.xml
to abc_layout2.xml
. once the binding import shows error rename it back to abc_layout.xml
.
the short cut to rename is shift + F6
. its way quicker that entire project rebuild. this will only remove error from one file though.