flutter-desktop - Flutter 桌面 Windows 显示 "No supported devices found"

标签 flutter-desktop

我想尝试一下 Flutter Desktop Windows。我在 VSCode 终端中使用了以下命令:

  1. 颤振 channel 大师
  2. 颤振升级
  3. flutter 配置 --enable-windows-desktop
  4. 颤动设备

这给出:

Windows • Windows • windows-x64 • Microsoft Windows [Version 10.0.17134.648]

我安装了 VS Studio Community 2019。Flutter Doctor 提供:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.14.4-pre.28, on Microsoft Windows [Version 10.0.17134.648], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.4.3)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.41.1)
[√] Connected device (1 available)

在 VSCode 中,我运行了 Flutter:新项目。在我的 Hello World 根文件夹内的 VSCode 终端中,我运行了 flutter packages get ,然后运行了 flutter run ,它给出了 找不到支持的设备?我知道事情进展很快。难道是我一步走错了? (应用程序在 Android 模拟器中运行良好)

最佳答案

desktop shells Wiki所述:

Currently, macOS is the only desktop platform supported by flutter create.

作为 Windows 的起点,您必须使用 flutter-desktop-embedding项目。

关于flutter-desktop - Flutter 桌面 Windows 显示 "No supported devices found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59883549/

相关文章:

flutter 桌面 : How to catch closure button?

windows - 是否有任何解决方案可以使用带有 Flutter 桌面的笔记本电脑相机拍照?

linux - flutter 桌面 : how to hide a window (and keep the process alive)?

macos - Flutter Desktop - 从 Mac 生成 .exe

flutter-desktop-embedding - 如何生成 "build/flutter_assets"

macos - 如何发布一个用flutter编写的macos应用

flutter - Flutter 桌面版中的 YouTube 播放器 (Windows)

Flutter linux 在 Ubuntu 22.04 LTS CMake 错误上构建

安装 msix 后,Flutter Windows 桌面应用程序卡在白屏上

Flutter 桌面多显示器