属性"orientation"在一起使用 GridLayout 和 ConstraintLayout 时已经定义



一起使用GridLayout和ConstraintLayout时,我收到以下错误

Error:(115) Attribute "orientation" has already been defined

问题是因为两个库都使用它

<attr name="orientation">

有谁知道解决方法?

此问题

已在ConstraintLayout 1.0.0-alpha2(发行说明)中修复。
将依赖项更新为:

compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha2'

这已经报告并可能在即将推出的CL:https://code.google.com/p/android/issues/detail?id=210511 版本中修复

至于解决方法,我发现除了禁用任一布局外都没有发现:/

相关内容

  • 没有找到相关文章

最新更新