简体   繁体   English

下载工件 flutter 应用程序时出现 gradle 错误

[英]gradle error while downloading artifacts flutter app

is there anyone can help me to fix this error,有没有人可以帮我解决这个错误,

Error:错误:

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

i have updated my gradle version to 6.1.1我已将我的 gradle 版本更新为 6.1.1

my gradle.wrapper.propreties:我的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

my build.gradle(dependecies):我的build.gradle(依赖项):

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

Try deleting the .gradle in C:Users/{username}/.gradle .尝试删除.gradle C:Users/{username}/.gradle Then open your IDE (Android Studio), Set "Enable for HTTPS" and rebuild your application.然后打开您的 IDE (Android Studio),设置“启用 HTTPS”并重建您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 下载工件时出现 java.io.FileNotFoundException 以及 Gradle 错误 - java.io.FileNotFoundException along with Gradle error while downloading artifacts Gradle 在从网络下载工件时抛出错误 - Gradle threw an error while downloading artifacts from the network Gradle 从网络下载工件时抛出错误。 正在重试下载... 在 android 工作室 - Gradle threw an error while downloading artifacts from the network. Retrying to download... in android studio Gradle/Flutter 中的构建错误:“无法解决配置的所有工件”? - Build error in Gradle/Flutter: 'Could not resolve all artifacts for configuration'? 运行应用时报错“$flutterSdkpath\packages\flutter_tools\gradle\app_plugin_loader.gradle” - Error "$flutterSdkpath\packages\flutter_tools\gradle\app_plugin_loader.gradle" while running the app flutter:第一次运行我的 flutter 应用程序时出现 gradle 错误 - flutter: getting gradle error while running my flutter app for the first time Gradle下载错误 - Gradle Downloading Error 将 Intellij Idea 用于 Flutter 时出现 android/app/build.gradle 错误 - Error in android/app/build.gradle while using Intellij Idea for Flutter Flutter:无法在模拟器上运行应用程序 - gradle 错误 - Flutter: Not able to run the app on simulator - gradle error 在vscode中运行flutter应用程序时gradle出错 - Having error in gradle in running flutter app in vscode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM