Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

enter image description here

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

like image 813
Aditya Kumar Patro Avatar asked Jul 19 '16 05:07

Aditya Kumar Patro


2 Answers

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

like image 135
Henrique de Sousa Avatar answered Oct 23 '22 23:10

Henrique de Sousa


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

like image 6
Camino2007 Avatar answered Oct 23 '22 23:10

Camino2007