![](/img/trans.png)
[英]java.io.FileNotFoundException along with Gradle error while downloading artifacts
[英]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.