【发布时间】:2020-12-05 23:40:11
【问题描述】:
这是我的第一个颤振应用程序,我尝试运行颤振给出的示例,但它卡在此消息应用程序 running gradle task 'assembledebug.... 上,或者有时出现错误Exception: Gradle task assembleDebug failed with exit code 1。
尝试做类似问题中回答的所有事情。使用 sdk 版本 30、Android Studio 版本 3.1 和 Flutter 版本 1.20.1。
> Failed to transform artifact 'x86_debug.jar (io.flutter:x86_debug:1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54)' to match attributes {artifactType=android-classes, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: C:\Users\dell\.gradle\caches\modules-2\files-2.1\io.flutter\x86_debug\1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54\570a59b7be41f73458509975d3eefca7ad5561cf\x86_debug-1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54.jar.
> Failed to transform 'C:\Users\dell\.gradle\caches\modules-2\files-2.1\io.flutter\x86_debug\1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54\570a59b7be41f73458509975d3eefca7ad5561cf\x86_debug-1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54.jar' using Jetifier. Reason: Unexpected end of ZLIB input stream. (Run with --stacktrace for more details.)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
【问题讨论】:
-
你能告诉我错误吗
-
在运行了几次之后构建现在失败了...异常:Gradle 任务 assembleDebug 失败,退出代码为 1。这是消息
-
这没有帮助,将之前的其他行复制并粘贴到您的问题中
-
您是否尝试过文件>无效缓存重启
-
试过无效缓存/重启
标签: java android android-studio flutter mobile