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

Attribute has already been defined #24

Open
RobbySmet opened this issue Feb 6, 2015 · 3 comments
Open

Attribute has already been defined #24

RobbySmet opened this issue Feb 6, 2015 · 3 comments

Comments

@RobbySmet
Copy link

Hi, when I try to use this library I get the following error while building:

C:\Users\Robby\Git repositories\Immozo\app\build\intermediates\exploded-aar\com.mcxiaoke.viewpagerindicator\library\2.4.1\res\values\values.xml

Error:Attribute "text" has already been defined
Error:Attribute "textColor" has already been defined
Error:Attribute "textSize" has already been defined

@elf-zwolf
Copy link

+1

@KeithYokoma
Copy link
Contributor

Thanks for your feedback.

The problem is that Android build system doesn't take care about attribute names that are conflicting with other libraries, and there's no way to tell the system to avoid this situation for now.

It's quite messy but the only way to fix this problem that we need to rename our attribute names adding some prefix looks like "lvt_".

@takaya1219 Please review this solution.

@RobbySmet
Copy link
Author

@KeithYokoma Yeah, I've seen the prefix solution used by numerous libraries so I think it's definitely a good solution.

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

No branches or pull requests

3 participants