alxrm / audiowave-progressbar

Lightweight audiowave progressbar for Android
MIT License
492 stars 84 forks source link

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

Open juanstein opened 6 years ago

juanstein commented 6 years ago

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!

protoss5482 commented 6 years ago

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)}

alxrm commented 6 years ago

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

RowlandOti commented 6 years ago

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.

alxrm commented 6 years ago

@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 commented 6 years ago

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

RowlandOti commented 6 years ago

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.

alxrm commented 6 years ago

Cheers!

KulwinderSinghRahal commented 5 years ago

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

IgorGanapolsky commented 5 years ago

What is the fix?

RowlandOti commented 5 years ago

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