Skip to content Skip to sidebar Skip to footer

Gradle Error : Duplicate Value For Resource 'attr/font' With Config " Solutions Not Working

I am trying to create circular-shaped buttons for my first android app. For that, I added the library as compile 'com.cuboid:cuboidcirclebutton:1.0.5' in circlebutton/app/build.gra

Solution 1:

You're using support library version 26 which defines attribute attr/font and the library defines the same attribute, this is what causes the error.

So you either use support library version < 26, for example: com.android.support:appcompat-v7:25.3.1. Or the library owner rename the attribute

Solution 2:

Thank you so much for your valuable insight y.allam. For any person who faces such an error. Below are the elaborated changes.

In your file build.gradle, change compileSdkVersion to 25 , targetSdkVersion to 25

solution part 1 .

Now in the same file, as sorted out by y.allam, change the SDK version to com.android.support:appcompat-v7:25.3.1.

[solution part 22

Post a Comment for "Gradle Error : Duplicate Value For Resource 'attr/font' With Config " Solutions Not Working"