【问题标题】:Dart DevTools give an error when enabling in VSCode - Dart DevTools exited with code 65在 VSCode 中启用 Dart DevTools 时出现错误 - Dart DevTools exited with code 65
【发布时间】:2019-12-28 17:03:21
【问题描述】:

当我尝试启用 Dart DevTools 时,我最终在 VSCode 中遇到以下错误。

Dart DevTools exited with code 65

这两个我已经关注了。

  1. https://github.com/flutter/flutter/issues/28545
  2. https://github.com/dart-lang/pub/issues/2092
  3. https://flutter.dev/docs/development/tools/devtools/overview

我该如何解决这个错误?

【问题讨论】:

  • 面临同样的问题.. devtools 0.1.5 doesn't support Dart 2.1.2 说我的日志,这很简单
  • 我在“macos_x64”上使用 Dart VM 版本:2.3.2(2019 年 6 月 11 日星期二 15:29:47 +0200)
  • 如果从终端运行“pub global run devtools”会发生什么?
  • 我有一个非常相似的错误 Dart DevTools exited with code 255

标签: flutter dart visual-studio-code flutter-test


【解决方案1】:

我终于解决了这个问题,删除了 .pub-cache 目录中的东西,这些东西在我的主目录中,而不是在我的源目录中。我希望这对其他人有帮助。

【讨论】:

  • 这个解决方案对我有用✅
【解决方案2】:

对我来说 Ctrl+Shift+P → 清除编辑器历史有帮助

【讨论】:

    【解决方案3】:

    发出这个命令

    flutter pub cache repair
    flutter pub cache add devtools
    flutter pub cache repair
    flutter pub global activate devtools
    flutter pub global run devtools (to check it is working)
    flutter pub get
    

    【讨论】:

      猜你喜欢
      • 2021-03-22
      • 1970-01-01
      • 2020-05-02
      • 2020-09-04
      • 1970-01-01
      • 2021-06-06
      • 2020-05-23
      • 2015-10-03
      • 2019-10-11
      相关资源
      最近更新 更多