Reputation: 76922
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.
Upvotes: 8
Views: 4427
Reputation: 1630
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.
Upvotes: 2
Reputation: 10209
File
- Settings
- Appearance & Behavior
- System Settings
- Android SDK
Remember choose "show detail". You should see the latest version of Constraint Layout.
Upvotes: 18
Reputation: 228
You need to install ConstraintLayout for Android
inside Support Repository
package on SDK Tools
category of SDK Manager
.
Upvotes: 10