Running "flutter pub get" in General… Resolving dependencies…
(13.9s) Connection closed before full header was received pub get
failed command:
"/Users/zhangyicheng/Developer/flutter/bin/cache/dart-sdk/bin/dart
__deprecated_pub –color –directory . get –example"pub env: { "FLUTTER_ROOT": "/Users/zhangyicheng/Developer/flutter",
"PUB_ENVIRONMENT": "flutter_cli:get", "PUB_CACHE":
"/Users/zhangyicheng/.pub-cache", }exit code: 69
2
Answers
finally, I fixed this error. It's because of the permission.
Get a stronger and more stable connection, try running ‘flutter clean’ first.