Android Studio 2021.1 gitlab pull失败

Android Studio 2021.1 gitlab pull失败,第1张

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

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/992611.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存