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

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

相关推荐
helloxmg6 小时前
鸿蒙harmonyos next flutter通信之MethodChannel获取设备信息
flutter
helloxmg6 小时前
鸿蒙harmonyos next flutter混合开发之开发package
flutter·华为·harmonyos
lqj_本人1 天前
flutter_鸿蒙next_Dart基础②List
flutter
lqj_本人1 天前
flutter_鸿蒙next_Dart基础①字符串
flutter
The_tuber_sadness1 天前
【Flutter】- 基础语法
flutter
helloxmg1 天前
鸿蒙harmonyos next flutter通信之BasicMessageChannel获取app版本号
flutter
linpengteng2 天前
使用 Flutter 开发数字钱包应用(Dompet App)
前端·flutter·firebase
云兮Coder2 天前
鸿蒙 HarmonyNext 与 Flutter 的异同之处
flutter·华为·harmonyos