<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
  <Match>
    <Class name="${project_namespace}.R"/>
  </Match>
</FindBugsFilter>

<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
  <Match>
    <Class name="~.*\.R\$.*"/>
  </Match>
</FindBugsFilter>

Exclude R class for findbugs
Exclude R class for findbugs