gpt4 book ai didi

android - SDK更新后报错

转载 作者:行者123 更新时间:2023-11-30 00:28:24 25 4
gpt4 key购买 nike

我刚刚更新了 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 :

最佳答案

你应该阅读 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'
}
}

关于android - SDK更新后报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44943890/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com