Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to resolve: com.android.support.constraint:constraint- layout:1.1.0-beta1

This is the error:

Error:(23, 13) Failed to resolve: com.android.support.constraint:constraint-
layout:1.1.0-beta1
Upgrade plugin to version 2.3.3 and sync project
Show in File
Show in Project Structure dialog

When i click in upgrade plugin, nothing happens. I dont know how to fix this. I have tried adding the repository maven google but it doesn't work.

Here is the app code:

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "com.google.googleio"
    minSdkVersion 22
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.1.0-beta1'
}
like image 715
Wolvy Avatar asked Mar 08 '23 05:03

Wolvy


1 Answers

To use ConstraintLayout 1.1.0 beta1 you have to add the google maven repo:

repositories {
    maven {
        url 'https://maven.google.com'
    }
}

More info here.

like image 200
Gabriele Mariotti Avatar answered Apr 27 '23 03:04

Gabriele Mariotti