skip to Main Content

trying to downgrade the flutter sdk from 3.19.5 to lower version with a command ‘flutter downgrade,’
but I got "There is no previously recorded version for channel stable/master"

I did ‘git checkout’ to the desired version in the file where I installed flutter and yet,
when I run ‘flutter –version’, it still gives me 3.19.5.

Does anyone have any idea where I got wrong? Please help!

tried flutter downgrade and git checkout to a specific version

2

Answers


  1. Use Puro to manage downrev versions. If you’ve heard of FVM, this is better.

    Login or Signup to reply.
  2. fluter downgrade :the version you want if you have a lot installed:

    otherwise just
    fluter downgrade
    on the terminal

    OR

    1. Open your terminal.
    2. Navigate to your Flutter SDK’s directory. It’s usually in your home directory like so: cd ~/flutter
    3. Use git tag --list to see all the available versions of Flutter.
    4. Once you’ve found the version you want to switch to, use git checkout followed by the version number. For example, if you want to switch to version 1.22.6, you’d use git checkout 1.22.6
    5. Finally, run flutter doctor to see if everything is working correctly.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search