I have trying since long to identify the issue but unfortunately not able to
If I do
android.enableAapt2=true
The code
If you don't have attrs.xml, then create one. After that add this snippet.