gpt4 book ai didi

java - Android Gradle 同步失败 : Could not resolve all artifacts for configuration ':classpath'

转载 作者:行者123 更新时间:2023-12-01 10:06:42 27 4
gpt4 key购买 nike

错误如下:

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:3.6.1.

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:3.6.1 available for offline mode.

最佳答案

这是在新的 Android Studio 3.6 更新中发现的问题。但这基本上不是问题。
您所要做的就是:
要启用或禁用 Gradle 的离线模式,首先从菜单栏中选择 View > Tool Windows > Gradle。然后,在 Gradle 窗口顶部附近,单击 Toggle Offline Mode

以下是一些截图:

  • First go here
  • Toggle this option
  • 关于java - Android Gradle 同步失败 : Could not resolve all artifacts for configuration ':classpath' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60463052/

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