gpt4 book ai didi

android-studio - DART_VM_OPTIONS=-DSILENT_OBSERVATORY=true

转载 作者:行者123 更新时间:2023-12-03 02:46:31 25 4
gpt4 key购买 nike

我今天在 Android Studio 中安装了插件 Flutter 和 Dart。最新版本。

我在我的项目中工作了几个小时做测试,更新后突然我不能再运行 Flutter 测试了,它一直说:

Warning: You should set `SILENT_OBSERVATORY` to true when debugging the VM as it will output the observatory URL by default.
This breaks the various reporter contracts.
To set the value define `DART_VM_OPTIONS=-DSILENT_OBSERVATORY=true`.

我正在使用带有 Flutter 稳定 channel 的 macOS 最新版本:

Flutter 1.17.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1ad9baa8b9 (11 days ago) • 2020-06-17 14:41:16 -0700
Engine • revision ee76268252
Tools • Dart 2.8.4

我尝试将 DART_VM_OPTIONS=-DSILENT_OBSERVATORY=true 添加到环境中,在控制台中导出,然后使用 open -a 启动 Android Studio...没有任何效果。

要么 Flutter 正在重写 var,要么内置的 dart-sdk 没有选择它。

因为将变量设置为全局变量不起作用,在运行 Android Studio 之前的终端 session 中也不行,Android Studio 也不允许您在 dart 插件面板中更改任何内容...我没有选择

如果有人知道如何解决这个问题,请帮忙。

最佳答案

他们确实回滚了有问题的代码:https://github.com/flutter/flutter-intellij/pull/4622#issuecomment-651443136

另外在我的评论中你有 Android Studio 的解决方法

关于android-studio - DART_VM_OPTIONS=-DSILENT_OBSERVATORY=true,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62629506/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com