Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using version 1.0.0-alpha7 of the constraint library, which is obsolete

I'm starting using Android Studio 2.2 and trying to play with ConstraintLayout but when I let android studio add it automatically it showed me that error

Using version 1.0.0-alpha7 of the constraint library, which is obsolete

when I try to upgrade it using quick fix I get that error

Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha8.

I think this is a bug in Android Studio. What should I do to fix it?

my current solution is to suppress the error.

like image 802
humazed Avatar asked Sep 22 '16 13:09

humazed


3 Answers

File - Settings - Appearance & Behavior - System Settings - Android SDK

Remember choose "show detail". You should see the latest version of Constraint Layout. enter image description here

like image 154
guo Avatar answered Oct 20 '22 04:10

guo


You need to install ConstraintLayout for Android inside Support Repository package on SDK Tools category of SDK Manager.

like image 10
simplebe Avatar answered Oct 20 '22 04:10

simplebe


You are getting this warning because you are using older version of constraint layout while you have newer version available. Go to your sdk manager->sdk tools->Support Repository->ConstraintLayout For Android and then tick the Show Package Details checkbox to find the available versions of constraint layout and install the newest version and update your build.gradle(App Level).

Up until now the newest version is constraint-layout:1.0.2 so use this.

like image 2
B.shruti Avatar answered Oct 20 '22 06:10

B.shruti