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 # 創(chuàng)建模擬器
flutter emulators --launch Pixel_7_API_34? ? ? # 啟動模擬器