Downgrading Flutter SDK to Version 1.x

Flutter
2021-08-08 17:43 (3 years ago) ytyng
% flutter downgrade v1.22.6

If you do this,

There is no previously recorded version for channel "stable".

an error message will appear, and you won't be able to downgrade.

To downgrade, you should perform a git checkout in the Flutter SDK directory

% cd <your-flutter-sdk-path>
% git fetch
% git tag
...
1.22.5
1.22.6
1.23.0-13.0.pre
1.23.0-18.0.pre
1.23.0-18.1.pre
...
% git branch -a
dev
master
stable
...
remotes/origin/flutter-1.27-candidate.5
remotes/origin/flutter-1.27-candidate.6
remotes/origin/flutter-1.27-candidate.7
remotes/origin/flutter-1.27-candidate.8
remotes/origin/flutter-1.27-candidate.9
remotes/origin/flutter-2.2-candidate.0
remotes/origin/flutter-2.2-candidate.1
remotes/origin/flutter-2.2-candidate.10
remotes/origin/flutter-2.2-candidate.11
...

% git checkout 1.22.6
HEAD is now at 9b2d32b605 [flutter_releases] Flutter Stable 1.22.6 Framework Cherrypicks (#74355)
% flutter doctor
...
...
[✓] Flutter (Channel unknown, 1.22.6, on macOS 11.4 20F71 darwin-x64, locale ja)
Currently unrated

Comments

Archive

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011