Android Studio 2021.1 gitlab pull失败

平学
2023-12-01

git更新失败,报错如下:

Update failed
            Invocation failed Unexpected end of file from server
            java.lang.RuntimeException: Invocation failed Unexpected end of file from server
            at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:30)
            at org.jetbrains.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... (show balloon)

解决方法:

找到settings->version control->git ,勾选Use credential helper

 类似资料: