在flutter官网中的写着升级命令,
但是执行升级命令会报错
Could not find an option with short name “-u”.
Run ‘flutter -h’ (or ‘flutter -h’) for available flutter commands and options.
ProcessException: Process exited abnormally:
fatal: unable to access ‘https://github.com/flutter/flutter.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
Command: git fetch --tags
最后在其他的贴子中其他网友也发现这个问题,然后使用了下面的命令升级更新
flutter upgrade --force
升级成功
它升级的是flutter官网中的稳定版本:
https://flutter.dev/docs/development/tools/sdk/releases#windows