我已经跑步:
export ENABLE_FLUTTER_DESKTOP=true
flutter channel master
flutter upgrade
然后在Flutter Doctor上我没有可用的设备:
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 emulator / ios emulator)
答案 0 :(得分:1)
无论您遵循什么指示,都是过时的; ENABLE_FLUTTER_DESKTOP
几个月以来一直没有得到支持或记录的方法来启用实验性桌面支持(并且最近的旧代码已被删除)。您需要使用documented in the official instructions作为flutter config
启用它