当我尝试运行Flutter Doctor或任何Flutter命令时,其给出错误

时间:2018-08-06 08:45:10

标签: flutter

当我尝试运行Flutter Doctor或任何Flutter命令时,它没有运行,并给我这个错误。我什至从系统中删除了.gitconfig文件,但仍然遇到同样的问题。我在Window pc Window 10上使用Flutter

fatal: bad config line 1 in file .git/config
Updating flutter tool...

Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Failed to send crash report. Server responded with HTTP status code 400
Crash report written to C:\Users\DTI-3\flutter_03.log;
please let us know at https://github.com/flutter/flutter/issues.

1 个答案:

答案 0 :(得分:2)

我已经从C:\flutter\.git flutter文件夹中删除了 config 文件,并尝试了flutter doctor命令。现在对我来说很好。早些时候,我试图通过从另一个位置删除配置文件来使其运行,然后从flutter文件夹(flutter sdk路径)中删除该文件。

相关问题