我在ubuntu 20上安装了Flutter,Flutter Doctor显示以下输出:
$ flutter doctor
fatal: not a git repository (or any of the parent directories): .git
Doctor summary (to see all details, run flutter doctor -v):
Failed to find the latest git commit date: VersionCheckError: Command exited with code 128: git -c log.showSignature=false log
-n 1 --pretty=format:%ad --date=iso
Standard out:
Standard error: fatal: not a git repository (or any of the parent directories): .git
Returning 1970-01-01 05:30:00.000 instead.
答案 0 :(得分:0)
我遇到了问题,因为颤动未正确安装。
因此完全消除了抖动,并添加到path及其工作正常
sudo snap remove flutter
然后从下载振颤的位置执行命令
export PATH="$PATH:`pwd`/flutter/bin"
现在可以正常工作