Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sync the gradle, duplicate value for resource #407

Open
burekas7 opened this issue Jan 8, 2019 · 3 comments
Open

Error when sync the gradle, duplicate value for resource #407

burekas7 opened this issue Jan 8, 2019 · 3 comments

Comments

@burekas7
Copy link

burekas7 commented Jan 8, 2019

@daimajia
error: duplicate value for resource 'attr/visibility' with config ''

It points to this file:
\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml

There is attribure with the name "visibility" that has the conflict.
What should I need to do?

Thanks

@NaturallyAsh
Copy link

same problem

@burekas7
Copy link
Author

You should press on the xml path from the error log, and edit the attr name to another name such as "custom_visibilty", save and rebuild.

@NaturallyAsh
Copy link

figured it out. For me I had to just delete my constraint layout dependency. attr/visibility was my problem but right under that it also said constraint layout was my problem. I deleted the dependency and it works now.

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

No branches or pull requests

2 participants