java - 如何修复调用失败来自服务器 : Unauthorized in Android studio 的意外响应

标签 java android git android-studio gitlab

我在 Gitlab 上有一个项目最近几天我一直在使用它!

现在我想在我的家用电脑上进行 pull 项目,但显示以下错误:

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)

我的android studio版本是3.4!

最佳答案

启用凭据助手对我有用,在 Windows 10 上使用 Android Studio 3.6.2

AndroidStudio -> 文件 -> 设置 -> Git -> 使用凭证助手

关于java - 如何修复调用失败来自服务器 : Unauthorized in Android studio 的意外响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55783219/

相关文章:

c# - TDD 由内而外 : Queries of how to do it correctly?

java - 从 Java 程序中终止 Windows session

java - 如何在滑动选项卡布局中将图标和文本对齐到center_vertical

android - SDK.DIR 丢失?安卓更新项目?

git - 他们是否可以仅针对当前推送将 Push.default 设置为 `current`

java - 在抽象基类中使用 Java 泛型

android - 任何在 Android 上做 C2DM 的人

Git 不在 Mac 上 Homebrew 的 PATH 中

git - 将用户添加到 Gitolite

java.io.IOException : Server returned HTTP response code: 500 异常