Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

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

Open
juanstein opened this issue May 17, 2018 · 10 comments
Open

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

juanstein opened this issue May 17, 2018 · 10 comments
Labels

Comments

@juanstein
Copy link

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!

@alxrm alxrm added the need more info This issue description didn't provide enough information to the contributors label May 24, 2018
@protoss5482
Copy link

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 alxrm added bug and removed need more info This issue description didn't provide enough information to the contributors labels Jun 2, 2018
@alxrm
Copy link
Owner

alxrm commented Jun 2, 2018

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

@RowlandOti
Copy link

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
Copy link
Owner

alxrm commented Oct 30, 2018

@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
Copy link
Owner

alxrm commented Oct 30, 2018

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

@RowlandOti
Copy link

RowlandOti commented Oct 30, 2018

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
Copy link
Owner

alxrm commented Oct 30, 2018

Cheers!

@KulwinderSinghRahal
Copy link

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

@IgorGanapolsky
Copy link

What is the fix?

@RowlandOti
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants