Does anyone know of a worka" />

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

android android-gridlayout android-constraintlayout

988 观看


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)


755 作者的声誉

This is already reported and probably fixed in the upcoming version of CL:

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

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


7433 作者的声誉


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

compile ''
作者: Marcin Koziński 发布者: 30.05.2016 05:09