java - 为什么我在推送到 Git Android Studio 时出错?

标签 java git android-studio

一切都很好,直到今天我对远程服务器的所有推送都成功了。我开始收到错误:

Remote URL test failed: getLastSuccessful failed. token: a7995c09-4e90-44f4-b143-67445d302f75, userName: my_server_adress, client: http://localhost:63342/RPC2 java.lang.RuntimeException: Invocation failed Server returned HTTP response code: 401 for URL: http://localhost:63342/RPC2 at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.getLastSuccessful(GitSSHXmlRpcClient.java:200) at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:201) at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:162) at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:125) Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:63342/RPC2 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at org.apache.xmlrpc.DefaultXmlRpcTransport.sendXmlRpc(DefaultXmlRpcTransport.java:87) at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) at org.jetbrains.git4idea.ssh.GitSSHXmlRpcClient.getLastSuccessful(GitSSHXmlRpcClient.java:196) ... 3 more Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

这个错误可能是上次更新AS导致的?我必须做什么才能推送代码更改?

最佳答案

我在 AS 的最新更新中遇到了同样的问题,我通过进入“设置”>“版本控制”>“Git”设法解决了这个问题 然后我将“ssh 可执行文件切换为“ native ””(之前是“内置”)

关于java - 为什么我在推送到 Git Android Studio 时出错?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57038141/

相关文章:

git - 如何在github上上传本地子模块的文件?

git - 如何在 cmder 中运行 msysgit?

arrays - JDK 中是否有数组的 .java 源文件?

java - 用于搜索文件的最佳磁盘数据结构?

java - 机器人 |如何检查 iamgeButton 的状态是播放还是暂停

linux - Github 不响应 SSH

java - 将 "this"赋值给Java中的引用变量

java - Android 中的列表(特别是 RecyclerView 和 CardView)如何工作

android - 为什么在 Android Studio 3.0 中运行 kotlin 测试这么慢

android-studio - Android Studio 中的 .iml 文件是什么?