赞
踩
1.我是直接从官网下载最新版本 stable 的 Flutter SDK ,解压后存放在c:/src 下,
然后执行flutter doctor 后有如下报错:
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b beta https://github.com/flutter/flutter.git
2.是由于未检测到.git文件引起,然后于是在c:/src/flutter 目录下执行 git init 提示如下:
Reinitialized existing Git repository in C:/src/flutter/.git/
3.这说明目录下已经存在了.git文件,原来是系统默认隐藏了,然后点击查看->勾选隐藏,.git文件就可以查看了
4.接下来我们重新执行 flutter doctor,就可以正常运行了,静静的等待就ok.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。