如何在IDX中运行Flutter Web应用?相关问题求助
在IDX中运行Flutter Web应用遇到的问题
问题背景
我在IDX中从GitHub打开了一个包含Flutter包的website文件夹的Flutter Web应用。
执行命令报错
执行flutter run -d chrome时,出现以下错误:
No supported devices found with name or id matching 'chrome'.
The following devices were found:
Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
Android SDK built for x86 (mobile) • localhost:5555 • android-x86 • Android 10 (API 29) (emulator)
Linux (desktop) • linux • linux-x64 • IDX GNU/Linux 6.1.85+
官方步骤尝试失败
按照IDX官方预览应用的步骤操作后未成功,不清楚npm run如何启动Flutter Web应用——该流程至少需要先构建Web应用并定位到website/build/web,但官方脚本里没有体现这些步骤。
疑问
- 是否可以在IDX中运行Flutter Web应用?
- 我的项目包含VSCode的
launch.json配置文件,定义了应用运行方式,由于IDX是VSCode衍生版本,本以为配置能直接生效,但并未被识别。
内容的提问来源于stack exchange,提问作者polina-c
相关产品推荐
相关产品推荐

