Gradle升级到6.2.1版问题

时间:2020-03-02 18:30:56

标签: android android-studio gradle

我在将Gradle升级到版本6.2.1时遇到问题,我目前正在运行android studio 3.6.1,因此我尝试这样做是因为我不断收到一条错误消息,指出最低支持的Gradle版本为5.6.4。当前版本是4.10.2。

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:6.2.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/6.2.1/gradle-6.2.1.pom
       - https://jcenter.bintray.com/com/android/tools/build/gradle/6.2.1/gradle-6.2.1.pom
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
Finished with error: Gradle task assembleDebug failed with exit code 1

0 个答案:

没有答案