当我在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我不知道该怎么解决这个问题。有人能帮帮忙吗?
发布于 2021-09-13 04:53:28
我和IntelliJ也有同样的问题。要解决此问题,请移动到run按钮旁边的框,然后单击它,选择edit configurations,然后禁用VM options下的选中模式,然后单击Ok。
或者你可以看到这个page
https://stackoverflow.com/questions/69156163
复制相似问题