设备:Mac air M3 2024
环境:
Mac 14.4.1
Flutter 3.19.5
Android Studio 2023.2
在调用pod install安装插件时,前面成功了几个插件,后面停止在GoogleUtilitiesCompomponents上,等待一会儿后,出现
Error installing GoogleUtilitiesComponents
于是先把gem升级,再使用pod update更新项目podfile
1、更新gem 版本sudo gem update —system
2、更新项目podfile : pod update (更新项目podfile)
结果在pod update的时候还是提示Error installing GoogleUtilitiesComponents,
根据错误的提示:
RPC FAILED;CURL 92 HTTP/2 stream 5 was not closed cleanly:CANCEL
fatal:early EOF
...
怀疑是请求交互的缓冲区出了问题,连接提前中止了,于是执行命令调整缓冲区
git config --global http.postBuffer 4194304000
执行完后,继续pod update
看到了熟悉的绿色,一路通畅~~
文章讲述了在MacAirM32024上,开发者在升级Gem和更新Podfile后,遇到GoogleUtilitiesCompoments安装错误。问题与HTTP/2连接提前终止相关,通过调整git的postBuffer设置解决了这个问题,最终成功更新Podfile。
2418





