본문 바로가기

Mobile/Flutter

fvm 설치

반응형

fvm flutter 버전 별로 변경하면서 개발 할 수 있도록 도움을 줌

 

먼저 brew가 설치 되어 있어야 함

brew tap leoafarias/fvm

brew install fvm

설치 후 

fvm releases를 통해 설치 가능한 버전 확인

┌───────────────────┬──────────────┬──────────┐
│ Version           │ Release Date │ Channel  │
├───────────────────┼──────────────┼──────────┤
│ v1.0.0            │ Dec 4, 2018  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.2.1            │ Feb 26, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.5.4-hotfix.2   │ May 7, 2019  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.7.8+hotfix.2   │ Jul 8, 2019  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.7.8+hotfix.3   │ Jul 9, 2019  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.7.8+hotfix.4   │ Jul 24, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.9.1+hotfix.2   │ Sep 22, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.9.1+hotfix.4   │ Oct 1, 2019  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.9.1+hotfix.5   │ Oct 17, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.9.1+hotfix.6   │ Oct 23, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.12.13+hotfix.5 │ Dec 11, 2019 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.12.13+hotfix.7 │ Jan 27, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.12.13+hotfix.8 │ Feb 11, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ v1.12.13+hotfix.9 │ Apr 17, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.0            │ May 6, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.1            │ May 13, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.2            │ May 28, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.3            │ Jun 4, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.4            │ Jun 18, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.17.5            │ Jul 1, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.20.0            │ Aug 5, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.20.1            │ Aug 6, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.20.2            │ Aug 13, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.20.3            │ Sep 2, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.20.4            │ Sep 15, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.0            │ Oct 1, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.1            │ Oct 8, 2020  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.2            │ Oct 16, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.3            │ Oct 30, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.4            │ Nov 13, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.5            │ Dec 10, 2020 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 1.22.6            │ Jan 25, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.0             │ Mar 3, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.1             │ Mar 4, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.2             │ Mar 12, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.3             │ Mar 19, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.4             │ Apr 2, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.5             │ Apr 16, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.0.6             │ Apr 30, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.2.0             │ May 18, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.2.1             │ May 27, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.2.2             │ Jun 11, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.2.3             │ Jul 1, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.5.0             │ Sep 8, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.5.1             │ Sep 17, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.5.2             │ Sep 30, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.5.3             │ Oct 15, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.8.0             │ Dec 9, 2021  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.8.1             │ Dec 16, 2021 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.0            │ Feb 3, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.1            │ Feb 10, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.2            │ Feb 19, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.3            │ Mar 3, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.4            │ Mar 28, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 2.10.5            │ Apr 18, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.0             │ May 11, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.1             │ May 20, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.2             │ Jun 10, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.3             │ Jun 22, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.4             │ Jul 1, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.0.5             │ Jul 13, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.0             │ Aug 30, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.1             │ Sep 7, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.2             │ Sep 14, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.3             │ Sep 28, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.4             │ Oct 5, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.5             │ Oct 19, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.6             │ Oct 26, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.7             │ Nov 2, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.8             │ Nov 9, 2022  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.9             │ Nov 23, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.3.10            │ Dec 15, 2022 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.0             │ Jan 24, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.1             │ Feb 1, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.2             │ Feb 8, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.3             │ Feb 9, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.4             │ Feb 21, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.5             │ Feb 23, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.6             │ Mar 1, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.7             │ Mar 8, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.8             │ Mar 22, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.9             │ Mar 30, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.10            │ Apr 5, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.11            │ Apr 12, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.7.12            │ Apr 20, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.0            │ May 10, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.1            │ May 17, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.2            │ May 24, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.3            │ Jun 2, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.4            │ Jun 7, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.5            │ Jun 14, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.10.6            │ Jul 12, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.0            │ Aug 16, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.1            │ Aug 23, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.2            │ Aug 30, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.3            │ Sep 8, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.3            │ Sep 13, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.3            │ Sep 13, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.4            │ Sep 13, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.5            │ Sep 20, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.6            │ Sep 27, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.7            │ Oct 11, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.8            │ Oct 18, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.13.9            │ Oct 25, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.0            │ Nov 15, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.1            │ Nov 27, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.2            │ Nov 30, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.3            │ Dec 6, 2023  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.4            │ Dec 13, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.5            │ Dec 20, 2023 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.6            │ Jan 10, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.7            │ Jan 11, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.8            │ Jan 17, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.16.9            │ Jan 25, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.0            │ Feb 15, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.1            │ Feb 21, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.2            │ Feb 28, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.3            │ Mar 8, 2024  │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.4            │ Mar 21, 2024 │ stable   │
├───────────────────┼──────────────┼──────────┤
│ 3.19.5            │ Mar 28, 2024 │ stable ✓ │
└───────────────────┴──────────────┴──────────┘

Channel:
┌─────────┬─────────┬──────────────┐
│ Channel │ Version │ Release Date │
├─────────┼─────────┼──────────────┤
│ stable  │ 3.19.5  │ Mar 28, 2024 │
└─────────┴─────────┴──────────────┘

원하는 버전 확인후 설치

fvm install 3.19.5 

 

설치 후 설치 된 version 확인

fvm list

─────────┬─────────┬─────────────────┬──────────────┬──────────────┬────────┐
│ Version │ Channel │ Flutter Version │ Dart Version │ Release Date │ Global │
├─────────┼─────────┼─────────────────┼──────────────┼──────────────┼────────┤
│ 3.19.5  │         │ Need setup      │              │              │        │
└─────────┴─────────┴─────────────────┴──────────────┴──────────────┴────────┘

글로벌로 등록

fvm global 3.19.5

기존에 등록되어 있는 버전이 환경 변수에 있어도 변경된다.

┌─────────┬─────────┬─────────────────┬──────────────┬──────────────┬────────┐
│ Version │ Channel │ Flutter Version │ Dart Version │ Release Date │ Global │
├─────────┼─────────┼─────────────────┼──────────────┼──────────────┼────────┤
│ 3.19.5  │         │ Need setup      │              │              │ ●      │
└─────────┴─────────┴─────────────────┴──────────────┴──────────────┴────────

글로벌 등록 확인

 

프로젝트에 fvm 버전 적용방법

실제 프로젝트 경로 이동 후 

fvm use [버전]

fvm use 3.19.5

Android studio 에서 버전 적용 방법

 

Settings...

 

Language... -> Flutter -> Flutter SDK path 버전 변경
use한 폴더에 가서 [CMD]+[SHIFT]+[.]을 누르면 숨겨진 폴더를 볼 수 있다 .fvm 경로 이동
flutter_sdk 를 선택하면 경로 선택 완료

반응형