
最近几天在家办公,我使用家里的Macbook Pro开发,在
Android Studio
中开发遇到:Cannot check the working tree for unmerged files because of an error.
这是Git代码管理工具报的错,具体的解决办法如下:
1.在mac的终端输入:
sudo xcodebuild -license
输入这个指令之后,需要回车输入电脑密码,然后在回车,终端界面会出现一大串的协议。我们可以通过空格或者回车跳过。
2.在协议的最后,我们需要输入agree
:
By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] agree
3.重启Android Studio
就可以正常拉取代码了。
网友评论