【发布时间】:2021-10-21 06:01:38
【问题描述】:
正在调试模式下在 M2101K7AG 上启动 lib\main.dart... 正在运行 Gradle 任务 'assembleDebug'...
FAILURE:构建失败并出现异常。
- 出了什么问题: 配置根项目“android”时出现问题。
无法解析配置“:classpath”的所有工件。 无法下载 bundletool-0.14.0.jar (com.android.tools.build:bundletool:0.14.0) > 无法获取资源“https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.14.0/bundletool-0.14.0.jar”。 > 无法获取“https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.14.0/bundletool-0.14.0.jar”。 > 不知道这样的主机 (dl.google.com) 无法下载 kotlin-compiler-embeddable-1.3.50.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50) > 无法获取资源“https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar”。 > 无法获取“https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar”。 > jcenter.bintray.com 无法下载 fastutil-7.2.0.jar (it.unimi.dsi:fastutil:7.2.0) > 无法获取资源“https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar”。 > 无法获取“https://jcenter.bintray.com/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.jar”。 > 没有这样的主机是已知的 (jcenter.bintray.com)
-
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
-
通过https://help.gradle.org获得更多帮助
在 14 秒内构建失败 异常:Gradle 任务 assembleDebug 失败,退出代码为 1
【问题讨论】:
标签: flutter