Reputation: 121
Error:(30, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha4
Upvotes: 11
Views: 21607
Reputation: 281
If nothing of this helps , Create a new android Project and check its build.gradle(module:app) and check for constraint compile/implementation. Copy that to your app build.gradle(module:app).
That should do the work :-)
Upvotes: 0
Reputation: 790
Well, I had the issue, that I updated the the ConstraintLayout and Solver dependecy like it was suggested it in the posts above. But still had the issue. My problem was, that the SDK Tools updated it to the latest version, in my case it was 1.0.0-alpha9, but in my gradle dependency was set to
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha8'
So, you can change your gradle build file to
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
Or you check "Show package details" in the SDK Tools Editor and install your needed version. See screenshow below.
Upvotes: 6
Reputation: 58
In Android Studio select: SDK Manager -> SDK Tools -> check 'com.android.support.constraint:constraint-layout:1.0.0-alpha4' in bottom of list and press 'OK' for installing this and updates, proposed by Android Studio.
Upvotes: 1
Reputation: 5795
I've found the fix:
Android Studio 2.2 Preview 7
25.2.1
ConstraintLayout and Solver for ConstraintLayout
in SDK Manager as per image belowcom.android.support.constraint:constraint-layout:1.0.0-alpha5
to gradle.buildUpvotes: 13