Win11安装flutter开发环境遇到的一些问题
Android toolchain的问题
懒人处理方法:更新到最新的android studio版本,在sdk manger安装最新的command-line。
Visual Studio问题
下载安装最新的vs,并且组件安装选c++桌面开发组件。
Network resources问题:
[1] A cryptographic error occurred while checking “https://pub.dev/”: Connection terminated during handshake You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.
这个pub.dev访问的问题,一般添加环境变量即可:
变量名:PUB_HOSTED_URL
变量值:https://pub.flutter-io.cn
[2] An HTTP error occurred while checking “https://storage.googleapis.com/”: 信号灯超时时间已到
这个storage访问的问题,一般添加环境变量即可:
变量名:FLUTTER_STORAGE_BASE_URL
变量值:https://storage.flutter-io.cn
[3] A network error occurred while checking “https://maven.google.com/”: 信号灯超时时间已到
这个问题就得更改成国内的镜像了。
以上问题参考:
作者:孟南知
链接:https://www.jianshu.com/p/b69231defaaf
来源:简书