MaterialSpinner
MaterialSpinner copied to clipboard
Build failed due to attr values error
I am getting the following error when trying to include the library:
Error:(762) Attribute "ms_errorColor" already defined with incompatible format.
Error:(687) Original attribute defined here.
The first line is pointing to this:
<declare-styleable name="StepperLayout"> ..... <attr format="color|reference" name="ms_errorColor"/>
And the second line to this:
<declare-styleable name="MaterialSpinner"> .... <attr format="color" name="ms_errorColor"/>
OK. seems like there is a conflict with this library: Material Stepper. Both seem to use the ms_errorColor
attribute.
So is there any way to resolve this that does not involve forking one of the libs and changing the attribute name?
I've the same problem here! @shahimclt did you solve forking?
@jordansilva I did not fork this but I solved the issue for now by downloading the source into my project and changing this:
<attr name="ms_errorColor" format="color"/>
to this:
<attr name="ms_errorColor" format="color|reference"/>
in res/attrs.xml
.
I will try to submit a PR when I get the time.
@ganfra any thoughts on this?
@ganfra Can we bump this? I would love to not have to include this project as a module!
https://github.com/ganfra/MaterialSpinner/pull/112
Since its not been added to the main library, here is an updated fork implementation 'com.github.interwap:MaterialSpinner:v2.0.1'
https://github.com/interwap/MaterialSpinner/
@interwap Unable for me to add your dependency. It is not in maven repo or jcenter
@gigaga its a Jitpack repo... Forgot to mention that...
What was changed? Currently (from the initial lib), I am not able to change color of floating label when this is an error (I'd like to set the color to red)
@gigaga I had issues with multidex on the other version when used with the Material Stepper. library. So it wouldnt even let gradle build successfully. Hence the need to fix the conflict.