Android Studio git pull failed

1662 ワード

Android Studio git pull failed
Android Studio gitを使用してコードタイムズを送信するのは間違いで、エラーメッセージは以下の通りです.
Git Pull 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... (show balloon)

私たちはgit cloneで降りたプロジェクトを使っていますが、gitを正常に使うことができるはずです.なぜコードを修正してpull時報を実行するのが間違っていますか.
私たちがgitサーバを構築したとき、私たちの公開鍵をgitサーバにアップロードしませんでした.(GitHubのように、ローカルさんで公開鍵を作って、GitHubのSettings->SSH and GPG keysに公開鍵を貼り付けます)
ダウンロードするたびにgitアカウントのパスワードを入力する必要があるので、Android Studioのデフォルト設定を使うとpullが失敗します.
Android Studio設定の変更:File->Settings->Git->SSH executable:元のNativeからBuilt-inに変更すればよい.
参照先:https://stackoverflow.com/questions/55783219/how-to-fix-invocation-failed-unexpected-response-from-server-unauthorized-in-an