问题描述
在我的应用我使用谷歌播放服务和其他一些人,所有按预期正常工作。但是当我谈到对设计方,我被要求使用的分段控制,因为我们在IOS 7所以使用这个库这个我累了。
但是当我加入这个库和同步我得到这个错误
And the Error message is this :
So I have no Idea what to replace and How to handle it. My case is different from others as others errors are just saying to remove or rename the drawables or resources of their app but in my app the conflicts is going between two libraries resources so How I am going to tackle this problem ? what is a solution of this? Please Help me.
I had the same problem when using the android-segment-control custom view. I think the problem comes with the newer Build Tools version (mine is now 22.0.1) which brings some default border_width value.
To remove the custom border_width:
In the attrs.xml file remove the "border_with" attribute so only the following remains:
<declare-styleable name="SegmentedGroup"> <attr name="corner_radius" format="dimension" /> <attr name="tint_color" format="color" /> <attr name="checked_text_color" format="color" /> </declare-styleable>
In the SegmentedGroup.java file remove the "mMarginDp" variable so only the following remains:
try { mCornerRadius = typedArray.getDimension( R.styleable.SegmentedGroup_corner_radius, getResources().getDimension(R.dimen.radio_button_conner_radius)); mTintColor = typedArray.getColor( R.styleable.SegmentedGroup_tint_color, getResources().getColor(R.color.radio_button_selected_color)); mCheckedTextColor = typedArray.getColor( R.styleable.SegmentedGroup_checked_text_color, getResources().getColor(android.R.color.white)); } finally { typedArray.recycle(); }
这篇关于Android的工作室Aapt.exe完成了非零退出值1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!