失败:构建失败并出现异常. [英] FAILURE: Build failed with an exception.(FLUTTER)
本文介绍了失败:构建失败并出现异常.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,我想调试最近的项目,但是当我尝试它时,出现了错误.
Hey guys I jut wanted to debug a recent project, but when I tried it, I got an error.
这是错误:
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)
我搜索了互联网,发现它可能与更新有关.
I searched the internet and found that it could be related to a flutter update.
可以吗?
该问题的解决方案是什么?
推荐答案
尝试:
flutter upgrade
然后:
flutter run -v
这可能会对您有所帮助.
It may help you.
这篇关于失败:构建失败并出现异常.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文