Flutter pod install 时提示Error installing GoogleUtilitiesComponents

设备: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

看到了熟悉的绿色,一路通畅~~

相关推荐
星秋Eliot15 小时前
认识 Flutter
flutter
tangweiguo0305198715 小时前
Flutter 根据后台配置动态生成页面完全指南
flutter
stringwu15 小时前
Flutter开发者必备:状态管理Bloc的实用详解
前端·flutter
humiaor1 天前
Flutter之riverpod状态管理详解
flutter·provider·riverpod
浮生若茶80881 天前
创建Flutter项目的两种方式
flutter
RaidenLiu1 天前
Riverpod 3:组合与参数化的进阶实践
前端·flutter
ideal树叶2 天前
Provider中的watch、read、Consumer、ChangeNotifierProvider、ValueNotifierProvider
flutter
勤劳打代码2 天前
独辟蹊径 —— NSIS 自定义 EXE 应用名称
windows·flutter
阿笑带你学前端2 天前
当手机遇上电视:Flutter实现局域网遥控输入的奇妙之旅
前端·flutter
早起的年轻人2 天前
Flutter 3.35.2 以上版本中 数字转字符串的方法指南
前端·flutter