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
解决方法
-
1.使用快捷键 command + shift +G,然后输入
Snip20200623_2.png~
打开flutter配置文件所在的文件夹
-
2.例如我本地的文件夹如下图
Snip20200623_1.png -
打开终端cd到具体文件夹下边
Snip20200623_3.png
-
- 执行命令
git clone -b beta https://github.com/flutter/flutter.git
就好了。
- 执行命令
网友评论