Duplicate class found in the file '/activity_login.xml' DataBinding, BR not being generated

Dipendra Sharma picture Dipendra Sharma · May 26, 2018 · Viewed 11.3k times · Source

I mostly being stuck with android data binding BR issue. There is single activity.xml always but generated binding class showing error. Please let me know how to resolve this issue.

enter image description here

Answer

xyz picture xyz · Sep 3, 2018

Custom binding class name resolved my problem

<data class="ContactItem">
    …
</data>