美文网首页
Android studio 升级到3.6之后出现Invocat

Android studio 升级到3.6之后出现Invocat

作者: 光羽隼 | 来源:发表于2020-03-02 11:56 被阅读0次

    最近把Android studio升级到3.6版本之后,在使用git的pull/push的时候遇到了一个问题。

    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(GitNativeSshAskPassXmlRpcClient.java:31) ... 1 more git@gitee.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
    

    查了一遍,都是基于 Android studio 3.4版本的解决方法,但是这个方法已经不适用于 3.6版本了。

    真正的解决方法是这样的: Help -> Find Action,搜索 Registry...,然后找到 git.use.builtin.ssh之后打勾。
    这样就ok了。

    相关文章

      网友评论

          本文标题:Android studio 升级到3.6之后出现Invocat

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