SPatrickApps SPatrickApps - 5 months ago 82
Android Question

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?

Answer

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