我在编码方面完全没有经验,我正在尝试安装flutter。当我在终端中运行“ flutter version”命令时,出现以下错误消息:
"xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Unable to get the tags. This is likely due to an internal git error.
Error: ProcessException: Process exited abnormally:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
Command: git tag -l *.*.* --sort=-creatordate."
我该如何解决?