Aditya Kumar Patro
Aditya Kumar Patro

Reputation: 121

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

enter image description here

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

Upvotes: 11

Views: 21607

Answers (4)

Shree
Shree

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

Camino2007
Camino2007

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

Upvotes: 6

Polurival
Polurival

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

Henrique de Sousa
Henrique de Sousa

Reputation: 5795

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

Upvotes: 13

Related Questions