ARTICLE

flutter pub get时报错pod install error: Error in the HTTP2 framing layer

Article original
Déclaration : l'auteur déclare que cet article est original, sans le consentement de l'auteur, ne pas revoir, si revoir, il faut indiquer l'origine du site, cette plate-forme se réserve le droit d'enquêter sur la responsabilité légale pour les violations.

在flutter工程中,flutter pub get时iOS工程的pod install报错问题。

Downloading dependencies
-> Installing Adjust (4.38.4)
Git download
Git download
$ /usr/bin/git clone https://github.com/adjust/ios_sdk.git /var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta --template= --single-branch --depth 1 --branch v4.38.4
Cloning into '/var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta'...
fatal: unable to access 'https://github.com/adjust/ios_sdk.git/': Error in the HTTP2 framing layer
[!] Error installing Adjust
[!] /usr/bin/git clone https://github.com/adjust/ios_sdk.git /var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta --template= --single-branch --depth 1 --branch v4.38.4
Cloning into '/var/folders/kx/zj85bxgx4td2tw0137gxb9vr0000gn/T/d20241019-31559-79f4ta'...
fatal: unable to access 'https://github.com/adjust/ios_sdk.git/': Error in the HTTP2 framing layer

截图:
flutter pub get error

解决办法:
将git的http version切换成1.1:

terminal Copy
git config --global http.version HTTP/1.1
Écrivez vos idées.
Partage de points de vue, communication amicale
Soyez gentil et rationnel.
0 Paroles

Pas de commentaire, je vais faire un premier commentaire.