flutter pub 失败

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中都是上面的报错,最后没办法,在电脑的命令行中执

行的

相关推荐
一 乐2 分钟前
民宿|基于java的民宿推荐系统(源码+数据库+文档)
java·前端·数据库·vue.js·论文·源码
testleaf31 分钟前
前端面经整理【1】
前端·面试
好了来看下一题33 分钟前
使用 React+Vite+Electron 搭建桌面应用
前端·react.js·electron
啃火龙果的兔子33 分钟前
前端八股文-react篇
前端·react.js·前端框架
小前端大牛马40 分钟前
react中hook和高阶组件的选型
前端·javascript·vue.js
刺客-Andy40 分钟前
React第六十二节 Router中 createStaticRouter 的使用详解
前端·javascript·react.js
秋田君2 小时前
深入理解JavaScript设计模式之策略模式
javascript·设计模式·策略模式
肥肥呀呀呀2 小时前
flutter 的lottie执行一次动画后关闭
开发语言·flutter
萌萌哒草头将军3 小时前
🚀🚀🚀VSCode 发布 1.101 版本,Copilot 更全能!
前端·vue.js·react.js
GIS之路3 小时前
OpenLayers 图层叠加控制
前端·信息可视化