My project uses packages that are not backward compatible,
I tired to install on a new PC but it install the latest flutter and I cannot downgrade flutter
$ flutter downgrade v1.22.6
Downloading Dart SDK from Flutter engine a252ec09b74cca0f8d8d3450566bf77c77f81e8d...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 199M 100 199M 0 0 1159k 0 0:02:55 0:02:55 --:--:-- 2695k
Building flutter tool...
Downloading Material fonts... 1,453ms
Downloading Gradle Wrapper... 242ms
Downloading package sky_engine... 914ms
Downloading flutter_patched_sdk tools... 4.8s
Downloading flutter_patched_sdk_product tools... 3.9s
Downloading linux-x64 tools... 7.3s
Downloading linux-x64/font-subset tools... 874ms
There is no previously recorded version for channel "dev".
I tried on stable
and beta
as well
$ flutter downgrade v1.22.6
There is no previously recorded version for channel "stable".
flutter downgrade 1.22.6
There is no previously recorded version for channel "beta".
I also tried:
$ flutter version v1.22.6
WARNING: Flutter version command has been removed, using latest from channel
To Downgrade Flutter SDK First of all Open your Terminal. Then type flutter version It will return all flutter version list. Choose the version that you want to downgrade. Just run the flutter version Suppose I want to use flutter version v1.
Upgrade/Downgrade by Changing Flutter Channel Each version can have different versions. For example, the stable channel uses the latest stable version, while the beta channel uses a pre-release version. To change the channel, you can use flutter channel {channelName} command.
cd to flutter directory, e.g. /home/elia/snap/flutter/common/flutter
then do:
git checkout 1.22.6
git checkout <sdk-version>
e.g git checkout 2.5.0
. just make sure the version you are asking for, is correct as in the sdk documentation (https://docs.flutter.dev/development/tools/sdk/releases).flutter --version
. if terminal dispaying something like Downloading Dart SDK from Flutter engine . . .
means you just have to wait for the download update to finish.flutter --version
to make sure that the sdk has changed.You can download the version you want from the Flutter SDK release page then install it as your Flutter SDK on your machine.
Download the version you want from the Flutter sdk release page and select that SDK path in Settings> Language and Framework > Flutter
.
If it throws the error " the flutter sdk is incomplete.." Simply navigate to where you downloaded the SDK then Flutter> Bin> Flutter.bat
This will download the remaining files for the sdk. You can then select the sdk path without error
SDK Release page
Go to your flutter install folder. If you do not know installation path, use this command:
flutter sdk-path
Then use git to downgrade
git checkout <VERSION>
flutter --version
This will download the specified version and downgrade flutter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With