英文:
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版本:
英文:
You can install and control multiple flutter versions through Flutter Version Management (FVM) :
答案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)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论