【问题标题】:flutter on mac desktop "No devices detected"mac桌面上颤动“未检测到设备”
【发布时间】:2019-10-31 20:40:13
【问题描述】:

我已经跑了:

export ENABLE_FLUTTER_DESKTOP=true
flutter channel master
flutter upgrade

然后在颤振医生上我没有可用的设备:

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.10.15-pre.357, on Mac OS X 10.14.6 18G103, locale en-IL)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.1)
[✓] Android Studio (version 3.4)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] IntelliJ IDEA Community Edition (version 2019.1.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.39.2)
[!] Connected device
    ! No devices available

! Doctor found issues in 4 categories.

我错过了什么吗? (我正在寻找开发桌面应用程序,而不是 android 模拟器 / ios 模拟器)

【问题讨论】:

标签: flutter


【解决方案1】:

您遵循的任何说明都已过时; ENABLE_FLUTTER_DESKTOP 几个月来一直没有得到支持或记录在案的方式来启用实验性桌面支持(并且它的旧代码最近已被删除)。您需要使用flutter config 启用它作为documented in the official instructions

【讨论】:

    【解决方案2】:

    只需启用 Flutter 桌面

    flutter config --enable-macos-desktop

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-21
      • 1970-01-01
      • 2016-04-12
      • 2017-12-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多