Search code examples
androidandroid-gridlayoutandroid-constraintlayout

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


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?


Solution

  • 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'