[异常记录]Error:Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

升级安卓版本之后 报了这个异常,
各种百度搜索 也没有解决,最后在项目的build.gradle 的buildscript 和 allprojects同时加上了 mavenCentral() google() 就编译成功,特此记录下!如果对于大家有帮助就更好了! 

已标记关键词 清除标记
Error:Could not resolve all files for configuration ':app:debugAnnotationProcessorClasspath'. > Could not find com.jakewharton:butterknife-compiler:5.1.1. Searched in the following locations: file:/D:/mySoftware/sdk/extras/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom file:/D:/mySoftware/sdk/extras/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar file:/D:/mySoftware/sdk/extras/google/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom file:/D:/mySoftware/sdk/extras/google/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar file:/D:/mySoftware/sdk/extras/android/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom file:/D:/mySoftware/sdk/extras/android/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar file:/D:/mySoftware/Android/android-studio3.0/gradle/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom file:/D:/mySoftware/Android/android-studio3.0/gradle/m2repository/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar https://dl.google.com/dl/android/maven2/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom https://dl.google.com/dl/android/maven2/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar https://jcenter.bintray.com/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.pom https://jcenter.bintray.com/com/jakewharton/butterknife-compiler/5.1.1/butterknife-compiler-5.1.1.jar Required by: project :app 已经按照步骤改了 可是一直报错 各种办法都试了! ![图片说明](https://img-ask.csdn.net/upload/201805/24/1527148814_688051.png) ![图片说明](https://img-ask.csdn.net/upload/201805/24/1527148675_887407.png)
©️2020 CSDN 皮肤主题: 点我我会动 设计师:白松林 返回首页