11

enter image description here

Error:(30, 13) Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha4

Alex K
  • 22,315
  • 19
  • 108
  • 236
Aditya Kumar Patro
  • 121
  • 1
  • 1
  • 4

4 Answers4

13

I've found the fix:

  • Download Android Studio 2.2 Preview 7
  • Update SDK Tools to the latest 25.2.1
  • Download ConstraintLayout and Solver for ConstraintLayout in SDK Manager as per image below
  • Add com.android.support.constraint:constraint-layout:1.0.0-alpha5 to gradle.build

ConstraintLayout and Solver

Henrique de Sousa
  • 5,727
  • 49
  • 55
6

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. Image of SDK Tools

Camino2007
  • 796
  • 10
  • 17
1

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.

Polurival
  • 58
  • 1
  • 9
0

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 :-)

Shree
  • 281
  • 3
  • 9