簡體   English   中英

下載工件 flutter 應用程序時出現 gradle 錯誤

[英]gradle error while downloading artifacts flutter app

有沒有人可以幫我解決這個錯誤,

錯誤:

Gradle threw an error while downloading artifacts from the network. Retrying to download...

我已將我的 gradle 版本更新為 6.1.1

我的gradle.wrapper.propreties:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

我的build.gradle(依賴項):

 dependencies {
    classpath 'com.android.tools.build:gradle:3.5.2'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

嘗試刪除.gradle C:Users/{username}/.gradle 然后打開您的 IDE (Android Studio),設置“啟用 HTTPS”並重建您的應用程序。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM