如何将Flutter降级到特定版本?

huangapple go评论108阅读模式
英文:

How to downgrade a flutter to a specific version?

问题

我目前使用的是Flutter 3.3.5,我想要升级到3.7.11,但问题是我不认为有办法直接升级到特定版本。

所以,我尝试升级到3.10.5,然后再尝试将版本降级到3.7.11。

我使用以下命令:

flutter downgrade v3.7.11

来将其降级到特定版本,但每次它都会询问我是否要"降级到Flutter版本3.3.5"。

我找不到实现我的目的的方法。请帮助。

英文:

I currently have flutter 3.3.5 and I'm trying to upgrade it to 3.7.11 but the problem is I don't think there's a way to upgrade to a specific version.

So instead I upgrade to 3.10.5 and try to downgrade the version to the 3.7.11

Im using

> flutter downgrade v3.7.11

to downgrade it to a specific version, but everytime it will ask me "Downgrade flutter to version 3.3.5"

I can't find a way to achieve my purpose. Please help

答案1

得分: 1

你可以通过Flutter版本管理(FVM)来安装和管理多个Flutter版本:

https://fvm.app/

英文:

You can install and control multiple flutter versions through Flutter Version Management (FVM) :

https://fvm.app/

答案2

得分: 0

你可以在 ~/.zshrc 文件中设置 Flutter 的路径。无论你在 ~/.zshrc 中设置了哪个 Flutter 版本,都会成为你系统上的 Flutter 版本。

希望对你有所帮助。

英文:

You can set the path of Flutter in ~/.zshrc file. Whatever Flutter version you set in ~/.zshrc that will be your Flutter version on your system.

Hope it helps.

答案3

得分: 0

降级 Flutter 到指定版本(例如:flutter downgrade v3.7.11)

英文:

flutter downgrade <version> (example: flutter downgrade v3.7.11)

huangapple
  • 本文由 发表于 2023年7月6日 11:45:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76625367.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定