본문 바로가기
Application/Flutter

[Flutter] 기기 인식 안될 때, Could not find Dart in your Flutter SDK ...

by 노반장 2025. 7. 22.

갑자기 프로젝트를 실행하니 아래와 같은 메시지가 나오며 SDK 인식을 못함(Cursor에서 문제였음..)

 

Could not find Dart in your Flutter SDK. Please run 'flutter doctor' in the terminal then reload the project once all issues are resolved.

 

flutter doctor도 잘되고...   =>  flutter doctor

PATH도 정상이고....    => echo $PATH 를 통해 플러터 설치 경로 확인

 

IDE에서 인식을 못하는 문제라고 결론

 

조치할 수 있는 아래 방법들이 있음

 

#1. 설정, 캐시, 확장 전부 삭제
rm -rf ~/Library/Application\ Support/Cursor
rm -rf ~/Library/Preferences/dev.cursor
rm -rf ~/Library/Caches/dev.cursor
rm -rf ~/Library/Saved\ Application\ State/dev.cursor.savedState
rm -rf ~/.vscode/extensions/*cursor*

 

#2. settings > sdk 를 검색해서 경로를 직접 IDE에 설정

 

#2. Flutter 캐시를 재설정

 

flutter upgrade
flutter precache
flutter doctor

댓글