Dart or Flutter 업그레이드가 안될 때

Jooni·2020년 12월 6일
2

Jooni_ Flutter 오답노트

목록 보기
23/26

Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via "git stash" or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this
command with --force.

플러터 버전이나 다트 버전을 업그레이드 할 때 이러한 에러가 떴다면 아마 IDE코드를 실수로 수정했을 가능성이 있다. 그러면 flutter upgrade force를 이용하면 업그레이드 되면서 고칠 수 있을 것이다.

profile
이해가 안돼시거나 질문이 있으신 분들은 댓글로 남겨주세요. 성심성의껏 응하겠습니다!

1개의 댓글

comment-user-thumbnail
2021년 9월 22일

감사합니다! 'flutter upgrade --force' 하니까 정상적으로 업그레이드 되네요 ㅎㅎ

답글 달기