flutter 版本回滚和升级

查看版本list

https://github.com/flutter/flutter/releases

升级到指定版本:

flutter upgrade v1.25.0

回滚到指定版本

1:在版本list里拿到commit记录,如图


commit记录

2:命令行查找flutter 所在目录
which flutter

3:cd 进入flutter 目录
git reset --hard 7891006

4: 命令行输入:
flutter doctor

你可能感兴趣的:(flutter 版本回滚和升级)