Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Google Play Services 4.4.52 attribute theme error #14

Closed
headsvk opened this issue May 25, 2014 · 8 comments
Closed

Google Play Services 4.4.52 attribute theme error #14

headsvk opened this issue May 25, 2014 · 8 comments

Comments

@headsvk
Copy link

headsvk commented May 25, 2014

Hi, new Google Play Services hit me with an error:
Error:Attribute "theme" has already been defined
It points to com.google.android.gms\play-services\4.4.52\res\values\wallet_attrs.xml

<!-- Attributes for the WalletFragment &lt;fragment&gt; tag -->
    <declare-styleable name="WalletFragmentOptions">
        <!-- Theme to be used for the Wallet selector -->
        <attr name="theme" format="enum">
            <enum name="holo_dark" value="0"/>
            <enum name="holo_light" value="1"/>
        </attr>
    </declare-styleable>

Is there a way to fix it?

@headsvk headsvk changed the title Google Play Services 4.5.2 attribute theme error Google Play Services 4.4.52 attribute theme error May 25, 2014
@eluleci
Copy link
Owner

eluleci commented May 30, 2014

The only way to fix this is forking the flatui and changing the 'theme' attribute to something different. I am looking for the solutions to avoid this but now there is nothing I can do.

It is not an option to change the attribute name of the original library because there can be conflicts with any attribute with any library. So forking and changing the attribute is the only option until I find a better solution. Sorry

@headsvk
Copy link
Author

headsvk commented May 30, 2014

Well I think it's the same issue as kloon15 reported, library prefix should fix it.

@eluleci
Copy link
Owner

eluleci commented May 30, 2014

I tried to add this but I had another problem with the Gradle like resourcePrefix() method not found. Also there is no much information about it. So I'll try to add this and see that it works with every one. Then I'll update the repo.

@headsvk
Copy link
Author

headsvk commented May 30, 2014

Okay, thanks.

@gabriel-farache
Copy link

Hi,
If you want to use the prefix, you need to use gradle 0.10 (minimum) in your build.gradle. Hope this help to solve this annoying issue :)

@headsvk
Copy link
Author

headsvk commented Jun 20, 2014

well I got latest gradle and I couldn't make it work with just resourcePrefix 'flatui_' in build.gradle of the library, I had to rename all attributes in the library manually to make it work

@aemxn
Copy link

aemxn commented Jun 26, 2014

It's my first time confronting with this error. Where is this build.gradle located at?

@eluleci
Copy link
Owner

eluleci commented Aug 4, 2014

fixed with 2.1.0

@eluleci eluleci closed this as completed Aug 4, 2014
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

4 participants