運行flutter run出現錯誤:No supported devices connected


運行flutter run出現錯誤:No supported devices connected

在通過flutter run啟動項目的過程中,遇到提示No supported devices connected的錯誤,錯誤的意思為沒有找到連接的設備

解決方案

  1. 運行flutter doctor,查看設備情況
flutter doctor
  1. 運行flutter emulators,查看可連接設備
flutter emulators
  1. 運行flutter emulators --launch <emulator id>,連接到指定設備,此時會打開一個模擬器
// mac端
flutter emulators --launch iOS Simulator
// windows
flutter emulators --launch Pixel_3a_API_30_x86
  1. 運行flutter run,啟動項目,正常運行
flutter run

github查看更多文章


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM