我最近更新了 dart 和 flutter,之后我在尝试时遇到了这个错误 哈巴狗获取:
C:\flutter\flutter\bin\flutter.bat --no-color pub upgrade
Resolving dependencies...
Git error. Command: `git fetch`
stdout:
stderr: fatal: unable to connect to github.com:
github.com[0: 140.82.113.3]: errno=Unknown error
exit code: 128
pub finished with exit code 69
Process finished with exit code 69
我不确定如何解决这个问题?提前谢谢你!
最佳答案
您的 pubspec 中的其中一个包的 URL 有问题。您可以通过运行 flutter pub get -v
查看有关哪个存储库出错的更多信息。
这对我来说是 Github has removed git native 传输通过 git://。我不得不将我的 git pubspec 条目更改为
package_name:
git:
url: https://github.com/Sub6Resources/flutter_html.git
关于flutter - 在 android studio 上从 "Pub get"获取错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72481841/