ARTICLE

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

The original article
Declaration: The author declares this article as original, without the author's consent, please do not re-publish, if re-publish, please indicate the site from where it comes, and the platform reserves the right to investigate legal liability for infringement of rights.

在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
Write your thoughts.
Share views, friendly communication
Please keep friendly, reasonable discussion.
0 Words

No comments, let’s post the first comment.