user1406716 user1406716 - 3 months ago 79
Android Question

Error msg: using version 1.0.0-alpha2 of the constraint library which is obsolete

I am using

android.support.constraint.ConstraintLayout
in my layout file and I get the following error message. I am not able to find what is the right compile line to use in gradle.

My gradle file has this:


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


enter image description here

Answer

Tactically, alpha7 works.

In the future, I would imagine that Android Studio will provide better indicators of what the latest version is, just as it does for the classic Android Support libraries. However, Android Studio 2.2 and ConstraintLayout are each in pre-release form at the moment, so we're subject to their limitations.

Comments