gpt4 book ai didi

flutter - 在 OneDrive 文件夹中抖动项目时如何修复 'No pubspec.yaml file found'?

转载 作者:行者123 更新时间:2023-12-03 21:23:34 25 4
gpt4 key购买 nike

运行 flutter packages getflutter run在我的项目的根目录中,它提示以下内容

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
exit code 1

此问题仅出现在位于 下的项目中。 OneDrive 文件夹 .

我可以在其他地方运行 flutter 项目。

我想知道是否有人有同样的问题。

今天重装win10后,这个问题就消失了。所以我想这是我个人的原因。

最佳答案

居然还有GitHub issue提交了与您的问题相关的文件。并且当前状态仍然是开放的。但是有一个解决方法来解决这个问题。
作者已能resolve the error当应用程序从“OneDrive”移出时

Yayy! It worked fine when I moved it out of OneDrive folder. So whilein OneDrive, it works fine until you touch pubspec.yaml. Anyways, allgood now!


该团队有可能仍在解决这个问题。

关于flutter - 在 OneDrive 文件夹中抖动项目时如何修复 'No pubspec.yaml file found'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49956500/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com