美文网首页FlutterFlutter
Flutter 回退/升级到指定版本

Flutter 回退/升级到指定版本

作者: wethereornot | 来源:发表于2022-07-04 17:37 被阅读0次

1.升级到当前最新版本

flutter upgrade

2.升级到指定版本

image.png
image.png
image.png
1.命令窗口切换到Flutter SDK的目录下
2.执行命令 git reset --hard 676cefaaff197f27424942307668886253e1ec35
执行命令后窗口会提示 HEAD is now at 676cefaaff 'Update Engine revision to ffe7b86a1e5b5cb63c8385ae1adc759e372ee8f4 for stable release 3.0.3' (#106431)
3.执行命令 flutter doctor 随后就自动下载指定版本了。

如下图所示:


image.png

相关文章

网友评论

    本文标题:Flutter 回退/升级到指定版本

    本文链接:https://www.haomeiwen.com/subject/xfodbrtx.html