gpt4 book ai didi

flutter - 错误 : Unable to create dart snapshot for flutter tool

转载 作者:行者123 更新时间:2023-12-03 04:14:11 24 4
gpt4 key购买 nike

当我运行 flutter change channelflutter doctor ,CMD 向我展示了这个:

C:\Users\MyUser>flutter doctor -v
Checking Dart SDK version...

Building flutter tool...

Running pub upgrade...

/C:/src/flutter/packages/flutter_tools/lib/src/aot.dart:144:5: Warning: Must explicitly return a value from a non-void function.
return;
^

当我运行时:
git clean -xfd

git pull

flutter doctor

CDM 向我展示了这一点:
fatal: not a git repository (or any of the parent directories): .git

我该如何解决?谢谢

最佳答案

有同样的问题...从flutter下载复制flutter_tools并替换为我安装中的相同文件夹,然后以管理员模式从命令运行flutter doctor。
有趣的是,这个问题对我来说也是 3 天前开始的。

关于 flutter - 错误 : Unable to create dart snapshot for flutter tool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61659910/

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