美文网首页
Android-在Mac环境遇到You have not agr

Android-在Mac环境遇到You have not agr

作者: 阿博聊编程 | 来源:发表于2022-11-28 15:04 被阅读0次
图片来源网络,入侵必删
最近几天在家办公,我使用家里的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就可以正常拉取代码了。

相关文章

网友评论

      本文标题:Android-在Mac环境遇到You have not agr

      本文链接:https://www.haomeiwen.com/subject/ednlfdtx.html