Does anyone know of a worka" />

Attribute "orientation" has already been defined when using GridLayout & ConstraintLayout together

android android-gridlayout android-constraintlayout

988 观看

2回复

365 作者的声誉

While using GridLayout and ConstraintLayout together i get the following error

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

The problem is because both of the libraries use this

<attr name="orientation">

Does anyone know of a workaround?

作者: SPatrickApps 的来源 发布者: 2016 年 5 月 22 日

回应 (2)


3

755 作者的声誉

This is already reported and probably fixed in the upcoming version of CL: https://code.google.com/p/android/issues/detail?id=210511

As for a workaround, I found none but disabling either layout :/

作者: Steffen Funke 发布者: 23.05.2016 05:50

5

7433 作者的声誉

决定

This has been fixed in ConstraintLayout 1.0.0-alpha2 (release notes).
Update your dependency to:

compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha2'
作者: Marcin Koziński 发布者: 30.05.2016 05:09
32x32