Flutter 错误 : File 'com.android.builder.files.ZipCentralDirectory@7869c730' was deleted, 但在缓存中找不到以前的版本

标签 flutter dart

我正在编写我的 flutter 应用程序,但不知从哪里弹出一个错误,我到处搜索以修复它,但我做不到。文件中没有错误

这是调试控制台中显示的错误

FAILURE: Build completed with 2 failures.

1: 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
   > File 'com.android.builder.files.ZipCentralDirectory@7869c730' was deleted, but previous version not found in cache

* 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:mergeDebugNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > File 'com.android.builder.files.ZipCentralDirectory@4d38c6ab' was deleted, but previous version not found in cache

* 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

BUILD FAILED in 1m 13s
Exception: Gradle task assembleDebug failed with exit code 1

请帮帮我....

最佳答案

flutter clean 命令解决了这个问题

关于Flutter 错误 : File 'com.android.builder.files.ZipCentralDirectory@7869c730' was deleted, 但在缓存中找不到以前的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65811729/

相关文章:

flutter - 如何在 flutter 的两个不同屏幕上使用同一个 bloc?

asynchronous - 为什么我无法捕获异常?

dart - 将常量和最终放入 Dart

flutter 取消选择 RadioListTile 按钮

dart - 如何从我的组件中检索值

flutter - 为什么 ElevatedButton 会被拉伸(stretch)以适应屏幕的宽度?

flutter - 如何将用户发送出应用程序 - 到特定目录路径

flutter - 如何处理不同的登录导航流程?

json - 在dart中按字母顺序对对象的JSON数组以及属性的 bool 值进行排序

当第二个屏幕上没有交互时,Flutter 导航回主屏幕