首页 > 解决方案 > 在颤振中使用图像选择器时构建错误

问题描述

我正在尝试在我的应用程序中实现图像选择器,但每次我获得图像选择器包时,都会出现构建失败。我无法理解它。请治愈我以解决此问题。我正在使用 image_picker:^0.6.6+4。


Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* 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 58s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        59.5s
Gradle task assembleDebug failed with exit code 1

标签: flutterimagepicker

解决方案


推荐阅读