I get this error while building my flutter app: Error running pod install flutter

768 views Asked by At

I get this error while building my Flutter app.

[!] Error installing BoringSSL-GRPC
[!] /usr/bin/git clone https://github.com/google/boringssl.git /var/folders/tm/64d5mqbn3wb9kfg7rx4t0vrh0000gp/T/d20231208-2941-1ub811p --template=

Cloning into '/var/folders/tm/64d5mqbn3wb9kfg7rx4t0vrh0000gp/T/d20231208-2941-1ub811p'...
error: RPC failed; curl 18 HTTP/2 stream 5 was reset
error: 4614 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
2

There are 2 answers

0
Akhrameev On
git config --global http.postBuffer 1024M

Helped me (suggested in Atlassian's forum here)

0
Robson Tomás Paulo On

Make sure you have a stable connection as Heshan Sandeepa recommended, because this issue is essentially related to network connection. Also be patient because as Nitish Kumar Singh's described on this post:

It downloads more than 1 GB of data when you Firebase(Firestore) to the Flutter Project. This is the reason why it took so long to finish.

I faced the same issue for almost a week, tried many solutions, and the only one that worked for me was finding a faster and more stable internet connection.