首页 > 解决方案 > 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)

我搜索了互联网,发现它可能与颤振更新有关。

可以吗?

这个问题的解决方案是什么?

标签: flutterdarterror-handling

解决方案


尝试:

flutter upgrade

然后:

flutter run -v

它可能会帮助你。


推荐阅读