当我使用flutter run命令时,它显示以下消息:
Multiple devices found:
Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.146
Edge (web) • edge • web-javascript • Microsoft Edge 86.0.622.51
[1]: Chrome (chrome)
[2]: Edge (edge)
Please choose one (To quit, press "q/Q"):这也是flutter emulators命令的结果:
3 available emulators:
Nexus_5x • Nexus_5x • Google • android
Pixel_2_API_29 • Pixel 2 API 29 • Google • android
pixel_xl • pixel_xl • Google • android
To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.
You can find more information on managing emulators at the links below:
https://developer.android.com/studio/run/managing-avds
https://developer.android.com/studio/command-line/avdmanager除了chrome和edge浏览器之外,是否可以将Android模拟器添加到flutter run命令列表中?
发布于 2021-02-06 09:37:45
您应该:
的列表
flutter emulatorsflutter emulators --launch Nexus_5x然后,当你运行flutter run的时候,你应该会看到你的新的安卓模拟器。
发布于 2021-02-06 21:47:00
flutter devices命令显示“可用设备”。尚未启动的仿真器在启动之前不可用。
如果您使用的是VS Code,您可能会发现使用内置的设备管理和调试比使用终端更好。在状态栏的右下角,它应该显示您的“活动设备”,如果你点击它,它会让你切换到另一个设备。该列表显示模拟器,即使它们没有启动,选择一个将自动启动它。

发布于 2021-02-06 05:34:27
flutter clean
颤动医生--android-licenses
https://stackoverflow.com/questions/66068639
复制相似问题