【问题标题】:Could not find a file named "pubspec.yaml" in git@github.com in flutter在颤动的 git@github.com 中找不到名为“pubspec.yaml”的文件
【发布时间】:2021-10-03 09:39:27
【问题描述】:

。大家好

我得到了

错误:在 git@github.com 中找不到名为“pubspec.yaml”的文件

在移动设备中运行“flutter pub get”...

在 git@github.com 中找不到名为“pubspec.yaml”的文件

pub 获取失败(1;在 git@github.com 中找不到名为“pubspec.yaml”的文件)

我在我的项目中使用来自 git 存储库的升级程序

在运行 pub get 时出现此错误

退出代码 1

【问题讨论】:

    标签: flutter dart github flutter-dependencies dart-pub


    【解决方案1】:

    从设备中的 /Users//.pub-cache 等位置删除 .pub-cache 文件夹。然后再次发布。 N.B:如果 puspec.yaml 不存在于您的 git 存储库中,则在您提交时确认它已提交到 Git。

    【讨论】:

      猜你喜欢
      • 2015-01-28
      • 1970-01-01
      • 2018-12-21
      • 2021-01-06
      • 1970-01-01
      • 2018-09-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多