DiceLoadingView icon indicating copy to clipboard operation
DiceLoadingView copied to clipboard

error: duplicate value for resource 'attr/number' with config ''.

Open vinsmain opened this issue 6 years ago • 1 comments

Hello Thank you for the excellent library. Faced a problem when switching to androidX:

Android resource compilation failed MyProject \ app \ build \ intermediates \ incremental \ mergeDebugResources \ merged.dir \ values ​​\ values.xml: 6203: error: duplicate value for resource 'attr / number' with config ''.

Debuger points here:

<declare-styleable name = "DiceView"> <attr format = "color | reference" name = "pointColor" /> <attr format = "color | reference" name = "borderColor" /> <attr format = "color | reference "name =" bgColor "/> <attr name =" number ">
         <flag name = "one" value = "1" />
         <flag name = "two" value = "2" />
         <flag name = "three" value = "3" />
         <flag name = "four" value = "4" />
         <flag name = "five" value = "5" />
         <flag name = "six" value = "6" />
     </ attr> </ declare-styleable>

vinsmain avatar Jun 30 '19 18:06 vinsmain

Sorry to reply you so late, about the error: "duplicate value for resource 'attr/number' with config", maybe there is already an attr named number, so you only need to change the name "number" to "dice_number" or any name you want to define. Thank you for your use.

samlss avatar Jul 29 '19 11:07 samlss