flutter - 在颤振中使用图像选择器时构建错误
问题描述
我正在尝试在我的应用程序中实现图像选择器,但每次我获得图像选择器包时,都会出现构建失败。我无法理解它。请治愈我以解决此问题。我正在使用 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
解决方案
推荐阅读
- css - 如何在扩展 url 中定位一个类
- html - 显示微小的默认图像,而不是我采购的图像
- python - 如何以正常形式从数据库中获取数据
- vb.net - 在 vb.net 中返回带有函数的对象
- javascript - 我将如何使用 javascript 添加这两个数字
- c++ - Implementing std::vector::push_back strong exception safety
- javascript - SharePoint 聊天图标嵌入 iframe 问题
- ruby-on-rails - 如何从 has_many 获取字段:通过关联
- python-3.x - 如何抓取没有任何源代码的数据?
- matlab - 如何删除txt文件中的每n行?