Gradle Sync失败

时间:2016-11-26 17:14:18

标签: android gradle

我在尝试构建应用时遇到此错误:

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

Gradle版本:

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

Android工作室版;

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

我尝试使用SDK TOOLS并启用约束求解器,但我没有帮助。这发生在今天,并且之前没有遇到过这个问题。有任何想法吗?

1 个答案:

答案 0 :(得分:1)

检查您是否安装了ConstraintLayout。打开SDK Manager,然后在SDK Tools选项卡中,您可以检查安装的ConstarintLayout版本。

SDK Tools

相关问题