gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 15:51:16 24 4
gpt4 key购买 nike

同时使用 GridLayout 和 ConstraintLayout 时出现以下错误

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

问题是因为两个库都使用了这个

<attr name="orientation">

有人知道解决方法吗?

最佳答案

这已在 ConstraintLayout 1.0.0-alpha2 ( release notes ) 中修复。
将您的依赖项更新为:

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

关于android - 一起使用 GridLayout 和 ConstraintLayout 时已经定义了属性 "orientation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37378884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com