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
Use Puro to manage downrev versions. If you’ve heard of FVM, this is better.
fluter downgrade :the version you want if you have a lot installed:
otherwise just
fluter downgrade
on the terminal
OR
git tag --list
to see all the available versions of Flutter.git checkout
followed by the version number. For example, if you want to switch to version 1.22.6, you’d usegit checkout 1.22.6
flutter doctor
to see if everything is working correctly.