Android studio - Faild to resolve: com.android.support:design:26.0.1 error

Add this to your project level build.gradle file:

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

Just to clarify, this should be in the "allprojects" section of the gradle file (Thanks to @tys)


Try to Change

buildToolsVersion "26.0.0"

and

com.android.support:design:26.0.0

Or not change into bulidToolsVersion Change dependencies

compile 'com.android.support:design:26.0.0-alpha1'

I had the same problem i solved it by using

compile 'com.android.support:design:26.0.0-alpha1'