Running "flutter pub get" in intrade-flutter... Resolving dependencies... Connection closed while receiving data pub get failed command: "/Users/linwang.chen/Downloads/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --directory . get --example" pub env: { "FLUTTER_ROOT": "/Users/linwang.chen/Downloads/flutter", "PUB_ENVIRONMENT": "flutter_cli:get", "PUB_CACHE": "/Users/linwang.chen/.pub-cache", } exit code: 69
Process finished with exit code 69
当你瞎搞,搞出上面的问题后,代理、翻墙、等等的方式都用完了,有可能是缓存出了问题
试试:
rm -rf ~/.pub-cache/
flutter pub cache repair
最后
flutter pub get
因为我无论如何在android stduio的terminal中都是上面的报错,最后没办法,在电脑的命令行中执
行的