本文介绍了属性"barLength"已经被定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将材料设计支持库更新为v23.0.1,现在,我的代码不再编译了.

I have just updated Material Design Support Lib to v23.0.1 and now, my code doesn't compile anymore.

Attribute "barLength" has already been defined
/Users/admin/Documents/workspace/MyApp/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/res/values-v23/values-v23.xml
Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

我该怎么办?

给我错误的2个库是:

compile 'com.android.support:design:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'

推荐答案

请确保您没有任何名为"barLength"的属性.在我的情况下,一个自定义的ProgressWheel引起了该问题,将其重命名为attr名称并解决了问题.

Make sure you do not have any attribute named "barLength". In my case a custom ProgressWheel caused the issue, renamed attr name and problem resolved.

这篇关于属性"barLength"已经被定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-10 20:38