flutter - FAILURE:构建失败并出现异常。(FLUTTER)
问题描述
嘿伙计们,我只是想调试一个最近的项目,但是当我尝试它时,我得到了一个错误。
这是错误:
Launching lib\main.dart on SM A202F in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> java.lang.NullPointerException (no error message)
* 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 18s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
我搜索了互联网,发现它可能与颤振更新有关。
可以吗?
这个问题的解决方案是什么?
解决方案
尝试:
flutter upgrade
然后:
flutter run -v
它可能会帮助你。
推荐阅读
- javascript - 如果我在 PHP 中调用我的 JS 函数,为什么我的 JS 代码不起作用?
- powershell - 为什么添加引号会更改 Powershell 中表达式的值?
- arcgis-runtime - ArcGIS Runtime:如何将点的单位从度转换为米
- html - 将鼠标悬停在 li 上时,如何使 aa 标签下划线
- php - SQLite,PHP - 准备方法无法准备 upsert 查询
- angularjs - 如何在 AngularJS 中缓存 Ajax 'POST' 请求的响应
- python-3.x - TimeTrigger Azure 函数在 Azure 门户中没有出现模块错误,但在 VSC 中运行良好
- html - 无法为多个问题选择单选按钮选项
- javascript - 显示选项卡菜单的问题
- php - 数据显示 Json 中每个元素的最后一个元素数据