Carlton Carlton - 6 days ago 9
Android Question

Gradle Sync Fail

I get this error when trying to build my app:

Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha1
Required by:
MyApp:app:unspecified


Gradle version:

classpath 'com.android.tools.build:gradle:2.3.0-alpha2'


Android studio version;

android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "MyApp"
minSdkVersion 22
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}


I tried going to SDK TOOLS and enabling the constraint solver, but I did not help. This happened just today, and have not have had this issue earlier. Any ideas?

Answer

Check if you have installed ConstraintLayout. Open SDK Manager and than in SDK Tools tab you can check what version of ConstarintLayout is installed.

SDK Tools

Comments