Failed to resolve com.android.support:support-annotations 26.0.1

所有当前版本的Google库都存放在 Google的Maven repository (maven.google.com),不在旧的offline-capable support repositories。

在你的项目build.gradle文件中,确保你的allprojects闭包像这样:

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

如果你使用的是androidstudio3.0+的话,这样:
allprojects {
    repositories {
        jcenter()
        google()
    }
}
原文地址:https://www.cnblogs.com/cbx17v/p/7692170.html