本文介紹了如何修復調用失敗來自服務器的意外響應:在 Android 工作室中未經授權的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我在 Gitlab 上有一個項目,過去幾天我一直在使用它!
I have one project on Gitlab and I worked with it for the last few days!
現在我想在我的家用電腦上進行 pull
項目,但顯示以下錯誤:
Now i want pull
project on my home PC but show me below error :
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!
My android studio version is 3.4 !
推薦答案
設法像這樣修復它:
AndroidStudio -> Preferences -> Git -> SSH Executable 并從 Native
更改為 Built-in
并開始工作.
AndroidStudio -> Preferences -> Git -> SSH Executable and changed from Native
to Built-in
and it started working.
這是針對 Android Studio 3.4 的,對于 3.6 Volodymyr 在下面有答案.
this is for Android Studio 3.4, for 3.6 Volodymyr has an answer below.
這篇關于如何修復調用失敗來自服務器的意外響應:在 Android 工作室中未經授權的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!