【问题标题】:FAILURE: Build failed with an exception.(FLUTTER)FAILURE:构建失败并出现异常。(FLUTTER)
【发布时间】:2020-07-05 10:36:32
【问题描述】:

大家好,我刚想调试一个最近的项目,但是当我尝试时,我得到了一个错误。

这是错误:

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 dart error-handling


    【解决方案1】:

    尝试:

    flutter upgrade
    

    然后:

    flutter run -v
    

    也许对你有帮助。

    【讨论】:

      猜你喜欢
      • 2020-06-13
      • 2021-09-24
      • 2019-05-24
      • 2018-07-28
      • 2018-10-22
      • 1970-01-01
      • 2021-06-28
      • 2018-10-29
      相关资源
      最近更新 更多