AndroidAndroid Studio

Invocation failed Unexpected end of file from server – Android Studio

After upgrading from Android Studio ArcticFox version to Bumble bee version, I faced this “Invocation failed Unexpected end of file from server” issue for some unknown reason. I unable to do any Git operations from Git menu. And When i try Git -> Fetch or Pull from BitBucket repo, I see its keep on downloading or refreshing. I thought my System internet down or BitBucket server down. But later understand this is a Android Studio issue and its happening only for current project bitbucket reposiory URL.

I only understand the issue, when i open Git tab at the bottom and see the Console tab, where i see below issue. 

Invocation failed Unexpected end of file from server

I tried different ways to resolve the issue like Invalidate and Restart. and Setting – Git – > Check Use Credential Helper. And remove .gitconfig file in C:/Users/User folder. And Uninstall Android Studio and install again. But nothing worked. I can able to run git commands to Pull/Push/Fetch in Terminal but not able to Git – menu options anymore. 

Please see update below

After a lot of  struggle, I look for the latest Android studio version and tried install latest Android Studio Dolphin (2021.3.1) Canary 1 version, from this link Android Studio download archives. And installed in a different folder (F drive) than previous installed version folder (D:). After install, when it asked to import prvious version setting. I selected Do not import.

Finally resolved the issue. Able to use Git -> menu. 

I donot say this “Invocation failed Unexpected end of file from server” issue is due to Android Studio Bumble Bee version. I guess, i may have done something wrong with editor and unable to recall what caused it.

Update on 11/03/2022

I find, the issue is due to Bitbucket Cloud recently stopped supporting account passwords for Git authentication. In latest AndroidStudio versions, It shows the issue clearly as below

Bitbucket error

To resolve this issue, you need to first log in to https://bitbucket.org/account/settings/app-passwords/ and Enter app label, Check all required permissions. and Then create App password.

Now, You need to change previously stored bitbucket password using Windows Credential Manager.

Control Panel -> User Account -> Credential Manager -> Manage Windows Credentials as shown below,

 

Windows 11, Credential Manager

You need to Edit and Enter BitBucket App password.

Now you can bale to get Bitbucket repository access in Android Studio

Hope it helps somebody.

Leave a Reply

Your email address will not be published. Required fields are marked *