Android Studio 拉取、提交代码失败 Invocation failed Unexpected end of file from server

错误日志:

21:30	Clone 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.java:87)
			at org.apac...

解决办法
Setting–>Version Control -->Git–》勾选上Use credential helper
Android Studio 拉取、提交代码失败 Invocation failed Unexpected end of file from server_第1张图片

你可能感兴趣的:(安卓,android,studio)