【发布时间】:2020-10-02 03:02:11
【问题描述】:
我尝试运行我的第一个颤振项目,但我不断收到此错误。
FAILURE:构建失败并出现异常。
-
出了什么问题: 配置根项目“android”时出现问题。
无法解析配置“:classpath”的所有工件。 无法下载 gradle.jar (com.android.tools.build:gradle:3.5.0) 无法获取资源“https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.jar”。 Content-Length 分隔的消息正文过早结束(预期:4170314;收到:2359280 无法下载 bundletool.jar (com.android.tools.build:bundletool:0.9.0) 无法获取资源“https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.9.0/bundletool-0.9.0.jar”。 Content-Length 分隔的消息正文过早结束(预期:5248142;收到:4456416 无法下载 protos.jar (com.android.tools.analytics-library:protos:26.5.0) 无法获取资源“https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.5.0/protos-26.5.0.jar”。 Content-Length 分隔的消息正文过早结束(预期:3432065;收到:2359280 无法下载 kotlin-stdlib-common.jar (org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50) 无法获取资源“https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar”。 读取超时
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
通过https://help.gradle.org获得更多帮助
在 20m 5s 内构建失败 异常:Gradle 任务 assembleDebug 失败,退出代码为 1
[截图1
【问题讨论】:
标签: android flutter gradle dart android-emulator