下载DartSDK(具有开发Dart命令行、服务器和非FlutterWeb应用程序所需的库和命令行工具(底层支持作用系统库))
1.Homebrew环境 //brew --version
2.brew tap dart-lang/dart
3.brew install dart
修改host
下载成功
描述信息查看
AndroidStudio 引入配置
备注:
storage.googleapis.com网站IP地址处于境外(美国/网络被屏蔽)需要中转桥接
IP地址查看
查询到很多IP值需要进行测试(ping):
Request timeout //ip不可用
xx bytes from IP //IP可用
storage.googleapis.com 142.250.31.207
Host
获取DartSDK
export HOMEBREW_NO_INSTALL_FROM_API=1
Failed to download https://formulae.brew.sh/api/formula.jws.json!
原因:升级错误
export HOMEBREW_NO_INSTALL_FROM_API=1
Operation too slow
Homebrew Error: Failure while executing
Failed to download resource “dart”
https://storage.googleapis.com/dart-archive/channels/stable/release/3.2.4/sdk/dartsdk-macos-x64-release.zip
brew --cache
/usr/local/Homebrew/