SDK更新后出错

时间:2017-07-06 08:42:58

标签: android xml updates

我刚刚更新了Android SDK,现在我的项目出现了这个错误。 我该如何解决? 提前致谢

  Error:Could not find com.android.tools.build:gradle:3.0.0-alpha4.
  Searched in the following locations:
   file:/C:/Program Files/Android/Android Studio 
  3/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha4/gradle-
  3.0.0-alpha4.pom
file:/C:/Program Files/Android/Android Studio 
 3/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha4/gradle-
 3.0.0-alpha4.jar
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-
alpha4/gradle-3.0.0-alpha4.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-
alpha4/gradle-3.0.0-alpha4.jar
Required by:
project :

1 个答案:

答案 0 :(得分:1)

您应该阅读migration guide

更改build.gradle:

buildscript {
    repositories {
        ...
        // You need to add the following repository to download the
        // new plugin.
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
    }
}