티스토리 뷰
[Flutter] How to install/use FVM(flutter version management) and setup in VScode?
Agrafenaaa 2023. 3. 31. 12:15You might face to control more than two flutter versions consisting of the old version for the previous released app and the new version for the developing project as flutter is upgrading at high speed. FVM which is an abbreviation of flutter version management will definitely solve your troublesome problem. All inforamation was taken from the official resource - https://fvm.app/.
1) Install fvm with homebrew.
## install
brew tap leoafarias/fvm
brew install fvm
## uninstall
brew uninstall fvm
brew untap leoafarias/fvm
2) Check avaliable versions and install the versions to use for projects.
## check list
fvm releases
## install a specific version
fvm install 3.3.10
## check all installed versions
fvm list
## check a current version
fvm flutter --version
fvm flutter doctor
3) Activate fvm command in the project and all flutter-related command lines are started by the keyword "fvm".
## activate a command "fvm"
flutter pub global activate fvm
## select the version for the project
fvm use 3.3.10
## add "fvm" for all clis.
fvm flutter clean
fvm flutter run
...
4) Check if the additional directory named ".fvm" is in your project and set up its path to use flutter devtools in vscode.
- Check the ".fvm" dir.
- Go to [Settings] - [Extensions] - [Dart] and open "Edit in settings.json"
- Add "dart.flutterSdkPath" which is the location of the current fvm folder in the project and "dart.flutterSdkPaths" indicating the path where the installed fvm versions are.
If you followed the guide appropriately, there would not be any doubts that fvm is a hassle-free alternative to switch versions for developing an app :=) 😂😂😂😂😂
'App > Flutter' 카테고리의 다른 글
- Total
- Today
- Yesterday
- Android
- mvvm
- flutter_android_app_links
- flutter
- unsplashAPI
- dagger-hilt
- Kotlin
- retrofit_toJson()_error
- RunAFlutterProjectIniPhoneFromVSCode
- FlutterWirelessDebuginAOS
- Laravel
- FirebaseConfigurationForMultipleBuildTypes
- laravel9
- android_app_links_domain
- flutter_storage_not_working_for_the_first_time
- retrofit_generator_conflicts_with_freezed
- querydslQclass
- phplaravel
- android_app_link_domain_works_with_adb_but_not_works_with_browser
- flutter_secure_storage_issue_iOS
- futter_api
- MultipleFirebaseEnvironments
- android_domain
- WirelessDebug
- querydsl5.0.0jakarta
- AndroidWirelessDebug
- KotlinFlow
- querydslKotlinError
- android_app_links
- retrofit_generator
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |