【问题标题】:globals.platform.environment['LOCALAPPDATA'] / FVM / Flutterglobals.platform.environment['LOCALAPPDATA'] / FVM / Flutter
【发布时间】:2021-11-08 08:40:39
【问题描述】:

当我在 VSCode 中运行 fvm flutter doctor 时,我收到此错误:

Building flutter tool...
../../../../../../fvm/versions/1.22.6/packages/flutter_tools/lib/src/android/android_studio.dart:379:37: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
        globals.platform.environment['LOCALAPPDATA'],

在 Android Studio 中使用相同的命令:

Building flutter tool...
Setting VM flags failed: Unrecognized flags: verbosity

我不知道如何解决这个问题。有人可以帮忙吗?

【问题讨论】:

    标签: flutter android-studio visual-studio-code fvm


    【解决方案1】:

    According this:

    我在使用 IntelliJ 时遇到了同样的问题。要修复此移动到运行按钮旁边的框,然后单击它,选择编辑配置,然后禁用 VM 选项下方的检查模式,然后单击确定。

    或者你可以看到这个page

    【讨论】:

      猜你喜欢
      • 2022-06-13
      • 2022-11-10
      • 2020-08-18
      • 1970-01-01
      • 2021-07-18
      • 1970-01-01
      • 1970-01-01
      • 2010-12-31
      • 1970-01-01
      相关资源
      最近更新 更多