audiowave-progressbar icon indicating copy to clipboard operation
audiowave-progressbar copied to clipboard

duplicate value for resource 'attr/progress' with config ''.

Open juanstein opened this issue 7 years ago • 10 comments

I'm getting this error when building.

Error:(251, 5) error: duplicate value for resource 'attr/progress' with config ''.

Don't know what to do!

juanstein avatar May 17 '18 20:05 juanstein

same error

error: duplicate value for resource 'attr/progress' with config ''. Message{kind=ERROR, text=error: duplicate value for resource 'attr/progress' with config ''., sources=[.../.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/eaf7f65f820701d9cd96b74c5b200f28/res/values/values.xml:251:5-69], original message=, tool name=Optional.of(AAPT)}

protoss5482 avatar May 31 '18 12:05 protoss5482

I guess I know where the issue comes from, I'll try to reproduce it and fix ASAP

alxrm avatar Jun 02 '18 11:06 alxrm

What was the fix, @alxrm I have a similar error in one of my libraries and could benefit from the fix? I can't see the fixing commit.

RowlandOti avatar Oct 30 '18 13:10 RowlandOti

@RowlandOti sorry, I've never pushed one, but it's simple, just don't ever name your attributes the same as the attributes of the default android widgets

The builder just sees duplicate attribute "progress" and throws this error, for example if you use progressbar elsewhere in your project

But that's just my hypothesis, I've never managed to actually test it, yet I'm pretty certain it's the real reason

alxrm avatar Oct 30 '18 13:10 alxrm

Gotta push the commit with the fix btw, thanks for reminding

alxrm avatar Oct 30 '18 13:10 alxrm

It is true, had a fix for that, and it worked. Seeing quite alot of similar bugs with many other different libraries, especially with the migration to AndroidX namespace. Thanks for the information.

RowlandOti avatar Oct 30 '18 21:10 RowlandOti

Cheers!

alxrm avatar Oct 30 '18 21:10 alxrm

I'm still getting same error. How to fix this ?

KulwinderSinghRahal avatar Nov 17 '18 04:11 KulwinderSinghRahal

What is the fix?

IgorGanapolsky avatar Jun 27 '19 22:06 IgorGanapolsky

Fix is mentioned in one of the comments - just read it.

RowlandOti avatar Jul 05 '19 17:07 RowlandOti