11

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

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
Prince Pandey
  • 193
  • 1
  • 7
  • Welcome to Stack Overflow, please take a time to go through [the welcome tour](https://stackoverflow.com/tour) to know your way around here (and also to earn your first badge), read how to [create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve) and also check [How to Ask Good Questions](https://stackoverflow.com/help/how-to-ask) so you increase your chances to get feedback and useful answers. – Josef Adamcik Aug 12 '17 at 11:20

1 Answers1

32

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()
    }
}
Valentun
  • 1,661
  • 12
  • 23