首页 > 解决方案 > Flutter App 卡在“app running gradle task 'assembledebug ...”

问题描述

这是我的第一个颤振应用程序,我尝试运行颤振给出的示例,但它卡在此消息应用程序上 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

标签: javaandroidandroid-studiofluttermobile

解决方案


尝试清空缓存“C:\Users\dell.gradle\caches”并重新运行项目。您还应该在构建项目时检查事件日志错误。


推荐阅读