Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0] [duplicate]

I have these two errors:

Failed to resolve: com.android.support:custom tabs:[26.0.0,26.1.0]

Failed to resolve: com.android.support:support-v4:[26.0.0,26.1.0]

Screenshot: of Error

like image 542
Prince Pandey Avatar asked Aug 12 '17 10:08

Prince Pandey


1 Answers

Now Android support package disturbs over network(starts from 25.4), so your project's build.gradle file should include that:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

UPDATE

Also you can add google() instead of maven{url "..."}:

allprojects {
    repositories {
        jcenter()
        google()
    }
}
like image 130
Valentun Avatar answered Oct 01 '22 09:10

Valentun