'gradle: Duplicate value for resources coming from multiple external libraries

I have a situation where I am trying to add two dependencies that have resources conflict.

Duplicate value for resource 'attr/userInfoAddressTextStyleValue' with config 'DEFAULT' and product ''. The resource was previously defined here:*location of the second library*

You can say they have a bunch of resource value ids in common. I am trying to figure out how to keep both libraries in the project.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source