【问题标题】:i got error message after i install image_picker flutter安装 image_picker flutter 后出现错误消息
【发布时间】:2020-08-26 07:40:04
【问题描述】:

我安装了 image_picker,之后我在启动应用程序时收到错误消息 这是错误日志

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@40b49de9' 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@5bca7644' 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 26s
Exception: Gradle task assembleDebug failed with exit code 1


这是什么问题?? 我该如何解决这个问题~?

【问题讨论】:

  • 尝试运行 pub get,flutter clean 然后再次运行应用程序

标签: flutter dart get package imagepicker


【解决方案1】:

安装时出现错误 所以首先再次检查步骤: https://pub.dev/packages/image_picker

如果不起作用,请尝试再次恢复 AndroidManifest.xml 并按照说明进行操作

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-14
    • 2019-10-22
    • 2020-08-16
    • 2020-02-11
    相关资源
    最近更新 更多