運行flutter run出現錯誤:No supported devices connected
在通過flutter run啟動項目的過程中,遇到提示No supported devices connected的錯誤,錯誤的意思為沒有找到連接的設備
解決方案
- 運行
flutter doctor,查看設備情況
flutter doctor
- 運行
flutter emulators,查看可連接設備
flutter emulators
- 運行
flutter emulators --launch <emulator id>,連接到指定設備,此時會打開一個模擬器
// mac端
flutter emulators --launch iOS Simulator
// windows
flutter emulators --launch Pixel_3a_API_30_x86
- 運行
flutter run,啟動項目,正常運行
flutter run

