Android studio git pull fiald Invocation failed Unexpected end of file from server

Android studio git pull fiald Invocation failed Unexpected end of file from server_第1张图片

1.遇到的问题

    Git Pull failed
            Invocation failed Unexpected end of file from server
            java.lang.RuntimeException: Invocation failed Unexpected end of file from server
            at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
            at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:58)
            Caused by: java.net.SocketException: Unexpected end of file from server
            at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:866)
            at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
            at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:863)
            at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
            at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
            at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
            at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87)
            at org.apache.xmlrpc.XmlRpcClientWorker... (show balloon)
 

2.解决办法

我用的是Android studio修改如下配置,勾上就可以了。

user credential helper

Android studio git pull fiald Invocation failed Unexpected end of file from server_第2张图片

你可能感兴趣的:(git)