【发布时间】:2021-12-27 12:20:23
【问题描述】:
我在 Flutter 中做一个大型应用项目,我已经为此工作了好几个星期,但突然在构建/运行时开始出现此错误:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:desugarDebugFileDependencies'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> zip END header not found
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> newPosition < 0: (-1 < 0)
此问题与我自己的计算机有关,因为在我同一分支上工作的其他人没有收到此错误。我已经查看了网上所有类似的帖子,但我仍然无法解决。
这是我的颤振医生:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Versione 10.0.19042.1415], locale it-IT)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.3)
[√] Android Studio (version 4.2)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
[√] VS Code (version 1.54.3)
[√] Connected device (3 available)
• No issues found!
我尝试删除整个项目并从远程重新创建它。它工作了几天,然后又这样。我不知道如何继续,任何帮助都会非常感激。
【问题讨论】:
标签: android flutter android-studio dart compiler-errors