Error updating Android Studio 5

Error: (249, 5) duplicate value for resource 'attr / font' with configuration '' Error: (249, 5) resource previously defined here

Error: java.lang.RuntimeException: com.android.builder.internal.aapt.AaptException: AAPT2 compilation failed:

+8
android
source share
2 answers

Try adding to gradle.properties

android.enableAapt2=false 
+1
source share

I assume that you have implemented the attr.xml file with the line <attr name="font"> . Since Android 8.0 comes with the new function <attr name = "font_name"> and possibly in all of your custom views and xmls layout. Or just use the new function;)

+13
source share

All Articles