android - 无法在 android studio 3.6 中进行 git pull

标签 android git android-studio intellij-idea android-studio-3.6

我收到如下所述的错误:

Update failed Invocation failed Unexpected Response from Server: Unauthorized java.lang.RuntimeException: Invocation failed Unexpected Response from Server: Unauthorized at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34) at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30) Caused by: java.io.IOException: Unexpected Response from Server: Unauthorized at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231) at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90) 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.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat



在以前的版本中,我设法像这样修复它:

AndroidStudio -> Preferences -> Git -> SSH Executable 并从 Native 更改为 Built-in 并开始工作。在此处查看用户界面:/image/KCvHA.png

但在 android studio 3.6 中,我在设置中看不到上述选项。

enter image description here

我还使用 测试了 git测试 右上角的按钮。 Git 正在成功执行。

enter image description here

最佳答案

此问题已在 Android Studio 3.6.1 中得到解决。我通过从 3.6 更新到 3.6.1 来验证它,并且 git 按预期工作

您可以找到发行说明 here .它说

Git version control authentication issue resolved

In the initial release of Android Studio 3.6, operations requiring authentication in Git version control were broken in the IDE. This bug has been fixed in 3.6.1. See Issue #124680708 for more information.

关于android - 无法在 android studio 3.6 中进行 git pull,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60412242/

相关文章:

java - Android 启动器 - 主页按钮

java - GoogleApiClient 无法在 android studio 中连接

Git 错误 : Changes not staged for commit

git - 在生产环境中使用 web 根目录下的 git

android - 如何降低firebase实时数据库下载成本?

android - 无法从丢弃的 APK 中提取 Crashlytics 构建信息

android - Nexus 5 无法连接到外围设备

git - 尝试推送 git 并接收 "could not read Username for ' https ://github. com':终端提示已禁用”

android - 如何将 DiffUtil 与多种 View 类型一起使用

java - 安卓系统覆盖 4.2.2