Android studio git 無法更新讼呢,報如下錯誤:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:q0C7pWCIVnYk9gqvV/eSQlm6IAuCba8yXn94t+GMUIQ.
Please contact your system administrator.
Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/Administrator/.ssh/known_hosts:1
Host key for git.yazuosoft.com has changed and you have requested strict checking.
Host key verification failed.
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解決方案:
根據(jù)提示找到對應目錄( /c/Users/Administrator/.ssh/known_hosts)下的known_hosts文件扫尺,打開后刪除里面的內(nèi)容后保存治拿。
重新更新代碼糠溜,彈窗后點擊確定攒盈,即可更新成功