首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android studio的Git操作失败

Android studio的Git操作失败
EN

Stack Overflow用户
提问于 2019-07-09 05:31:48
回答 1查看 124关注 0票数 0

我最近遇到了一个奇怪的问题,每当我触发任何git操作(比如拉/推)时,我的android studio都会崩溃。上面写着:

代码语言:javascript
复制
Update failed
        Invocation failed Unexpected Response from Server:  Unauthorized
        java.lang.RuntimeException: Invocation failed Unexpected Response from Server:  Unauthorized
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34)
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30)
        Caused by: java.io.IOException: Unexpected Response from Server:  Unauthorized
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231)
        at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
        at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
        at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat... (show balloon)

任何帮助都将不胜感激。提前感谢!

我删除了known_hosts文件,command_line git问我是否可以创建一个并添加这个IP,我说可以。

命令行运行git操作没有任何问题。是sourceTree和安卓工作室有这个问题,我不知道为什么

EN

回答 1

Stack Overflow用户

发布于 2019-07-09 06:06:49

当远程known_hosts知道客户机的IP时,远程主机可能无法在本地关联,或者由于某些其他原因,SSH2身份验证不会成功。Unauthorized通常意味着防火墙不是问题所在。

尝试使用“原生”客户端-它应该可以工作,但它在终端中工作:

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56942804

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档