Handling DataBinding errors when switching Git branch
问题 I have a lot of issues with DataBinding when switching between Git branches where a databinding layout has been changed/removed. I regularly get build errors like this when a file is removed when switching Git branch: <path>/build/generated/data_binding_base_class_source_out/debug/dataBindingGenBaseClassesDebug/out/com/some/package/databinding/SomeLayoutBinding.java:38: error: cannot find symbol public final SomeOtherLayoutBinding variable; ...and try every combination of Clean Project .