cmd打开命令行执行flutter doctor命令出现下面错误 Error: The Flutter directory is not a clone of the GitHub project.

解决方法

把刚刚下载的Flutter安装包删掉,重新在想要安装的目录下运行用cmd打开命令行执行git clone -b beta https://github.com/flutter/flutter.git命令

cmd打开命令行执行flutter doctor命令出现下面错误 Error: The Flutter directory is not a clone of the GitHub project.

如果此时路径名称已改需要重新在环境变量path中进行更改

然后在cmd打开命令行执行flutter doctor命令成功

cmd打开命令行执行flutter doctor命令出现下面错误 Error: The Flutter directory is not a clone of the GitHub project.