flutter 启动 安卓模拟器 报错
"launch.json" 中缺少配置“flutterdian (Flutter Pixel 7)”。
No devices found yet. Checking for wireless devices...
No supported devices found with name or id matching 'Pixel 7'.
The following devices were found:
taoban的iPhone (mobile) • 00008020-00120D1E3CF3002E • ios • iOS 18.3.2 22D82
macOS (desktop) • macos • darwin-arm64 • macOS 15.1 24B83 darwin-arm64
Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1 24B83 darwin-arm64
Chrome (web) • chrome • web-javascript • Google Chrome 134.0.6998.166
决解方案
flutter emulators --create --name Pixel_7_API_34 # 创建模拟器
flutter emulators --launch Pixel_7_API_34 # 启动模拟器