【问题标题】:Unable to upgrade flutter no origin repository configured无法升级颤振未配置源存储库
【发布时间】:2020-05-17 16:49:46
【问题描述】:

我正在运行“flutter upgrade”并收到消息:无法升级 Flutter:未配置源存储库。运行'git远程添加 起源https://github.com/flutter/flutter'在 /颤动

我试过运行那个命令,它说源已经配置好了。我在这里尝试了所有方法:Unable to upgrade Flutter: no origin repository configured,但我收到了相同的错误消息。

我也试过了:

git clean -xfd
git stash save --keep-index
git stash drop
git pull
flutter doctor

Same no origin reposistory 错误。

但是,如果我运行“git pull”,升级过程就会成功运行。我不确定为什么颤振升级命令不起作用。

颤振医生输出:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
[✓] Android Studio (version 3.6)
[✓] Connected device (1 available)

【问题讨论】:

  • 尝试跟随 Coomand "flutter upgrade --force"
  • @VirenVVarasadiya 仍然说没有配置来源。

标签: flutter flutter-dependencies


【解决方案1】:

删除flutter文件夹:User/Development/flutter then running git clone https://github.com/flutter/flutter.git -b stable重新下载flutter解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-02-02
    • 1970-01-01
    • 2022-01-20
    • 2021-06-17
    • 2021-08-11
    • 2021-06-19
    • 2020-12-09
    • 1970-01-01
    相关资源
    最近更新 更多