The same Android attribute name in two libraries, column name

I use two third-party libraries, both use the same attribute name in their attrs.xml. Build failed:

Attribute "tabBackground" has already been defined 

Is there a way around this collision without changing the name of the argument in one of the libraries?

+5
source share
1 answer

Not really.

I assume that you have a dependency on project A from B.

When you create your main project in Eclipse, the resources will not be built and the Android console will display an error message: "... error: Attribute "icon" has already been defined" .

In fact, you have two ways:

  • remove dependency on project A to B
  • OR change the attribute name of a project

Also, if you are creating a project using Gradle, you can use this article that explains how to combine resources.

+4
source

All Articles