Error:(249, 5) duplicate value for resource 'attr/font' with config '' Error:(249, 5) resource previously defined here
Error:java.lang.RuntimeException: com.android.builder.internal.aapt.AaptException: AAPT2 compile failed:
I guess you implemented an attr.xml file with a line <attr name="font">
. Since Android 8.0 comes with a new feature called 'Fonts in XML' this might be the reason for your Error. You could change the name of the attribute to e.g. <attr name="font_name">
and probably in all your custom views and layout xmls, too. Or just use the new feature ;)
Try adding in your gradle.properties
android.enableAapt2=false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With