切换Flutter渠道 beta/dev/master/stable

1. 查看当前Flutte渠道

flutter channel

默认为beta

Flutter channels:
* beta
  dev
  master
  stable

master 为当前最新的channel;
dev 为当前最新且充分测试后的channel;
beta 为每月Flutter官方调整选出来的最好的dev的channel;
stable 为当前最稳定的channel。
稳定性排序:master < dev < beta < stable 。
官方详细介绍:Flutter build release channels

2. 切换渠道

下面以切换到master渠道为例

  1. 切换
flutter channel master
Switching to flutter channel 'master'...
git: From https://github.com/flutter/flutter
git:    57f2df76d..18cd7a360  beta              -> origin/beta
git:    e58dc16d7..354f80b84  master            -> origin/master
git:  + 68587a091...27321ebba stable            -> origin/stable  (forced update)
git:    57f2df76d..18cd7a360  v1.12.13-hotfixes -> origin/v1.12.13-hotfixes
git:  * [new tag]             v1.12.13+hotfix.5 -> v1.12.13+hotfix.5
git:  * [new tag]             v1.12.13+hotfix.6 -> v1.12.13+hotfix.6
git:  * [new tag]             v1.12.13+hotfix.4 -> v1.12.13+hotfix.4
git: Switched to a new branch 'master'
git: Branch 'master' set up to track remote branch 'master' from 'origin'.
  1. 再次查询渠道信息
flutter channel

下面打印结束时,切换就完成了

Downloading Dart SDK from Flutter engine 12bf95fd49b7456f08a1274078c4b55e675ad018...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  202M  100  202M    0     0  1025k      0  0:03:22  0:03:22 --:--:-- 1113k
Building flutter tool...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure
you trust this source!
Downloading package sky_engine...                                   2.6s
Downloading common tools...                                         7.0s
Downloading common tools...                                         8.6s
Downloading darwin-x64 tools...                                    89.4s
Flutter channels:
  beta
  dev
* master
  stable
发布了407 篇原创文章 · 获赞 90 · 访问量 39万+

猜你喜欢

转载自blog.csdn.net/yinxing2008/article/details/103503269