0
点赞
收藏
分享

微信扫一扫

android studio工具 提交拉去代码失败

巧乐兹_d41f 2022-04-03 阅读 70
Androidjava

问题描述

请添加图片描述
在使用android studio的时候 点击拉取代码,和提交代码push提示报错失败如下:

17:32 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)
   
unable to read askpass response from
'C:\Users\Administrator\AppData\Local\Google\AndroidStudio2021.1\tmp\intellij-git-askpass-local.sh' 
bash: /dev/tty: No such device or address 
failed to execute prompt script (exit code 1) 
could not read Username for 'https://git.aalws.com': No such file or directory

原因分析:

这里的报错

unable to read askpass response from
'C:\Users\Administrator\AppData\Local\Google\AndroidStudio2021.1\tmp\intellij-git-askpass-local.sh' 
bash: /dev/tty: No such device or address 
failed to execute prompt script (exit code 1) 
could not read Username for 'https://git.aalws.com': No such file or directory

这里报错首先说读取的bash:/dev/tty 没有如此的设备和地址
下面又说没有从这段 http://git.aalws.com 通过username读取到文件
说白了 就是出现了帐号密码的错误


解决方案:

1.首先确认自己是否已经添加git的window凭证:在控制面板-用户帐号-凭据管理器-windows凭据中添加
凭据:
请添加图片描述
2.如果凭据添加好了:使用git测试 git commit是否可以拉取代码
3.如果上述都已经完成:

举报

相关推荐

0 条评论