Connecting Android Studio to BitBucket on iMac
Asked by Shimon Rothschild:

My access connection was transparent, now broken. I don't understand how to reset Android Studio so that I can access my Bitbucket account. Can someone explain step-by-step (screenshots is better!, how about video?) how to reset (set up) authentication and authorization from Android Studio (on Mac). What do I need to remove and where do I need to enter credentials. Apologies, Bitbucket is merely a tool, a tutorial for 'simple programmers' should be available for this significant change in DevOps. Thank you.

This is specific to the change outlined in: Announcement: Bitbucket Cloud account password usage for Git over HTTPS and API ending March 1, 2022. ...**beginning March 1, 2022, Bitbucket Cloud users will no longer be able to use their account passwords when using Basic authentication for Git over HTTPS and the Bitbucket Cloud REST API**.


Answers:
author: Shimon Rothschild
body: I contacted Android Studio team and they responded. Bug level:

P3:issue that should be addressed when able

For the interim I am using Sourcetree. Issue closed.

comments: author: Igor Ganapolsky
body: It still is an issue in Android Studio Canary 8. Can't authenticate to BitBucket...


author: Shimon Rothschild
body: Did not work, but is a step:

Keychain access left side nav menu, select login, search for and delete key:

IntelliJ Platform Git HTTP --- <http://username@bitbucket.org>

Still unexpected end of file.

comments: author: Christopher Smit
body: Hi Shimon,

Not sure if this is the best way to do it, but I managed to connect it to Android Studio by doing the following:

1. Click Git -\> Manage Remotes

2. Click on your remote and then edit

3. Next to your username add a colon (:) and then your app password.

4. Save

It now pushes to the remote repository. So although this works, I am a little uneasy with the fact that the password sits as clear text in my remote url.


author: Mahmoud Ayman
body: works for me, thanks


author: Norbert C
body: Hi Shimon,

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

Unfortunately I don't have Android Studio installed, but when I read the documentation of this app, what I can see is that you can change the password by going to:

Setting --\> Version Control

Please let me know if this helps.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Thomas Henry
body: This doesn't help at all  
You've made a big change in authentification without providing ANY explanation on how to do it, and now we cannot work


author: Norbert C
body: Hi Thomas,

Can you let me know what tool do you use to connect with Bitbucket Cloud? I'm going to search on the internet to find out, how you can change the authentication on that specific app.

Please let me know.  

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Thomas Henry
body: I use Android Studio, but i finally made it work by revoking the app password and making a new one


author: Norbert C
body: Thanks [@Thomas Henry](/t5/user/viewprofilepage/user-id/4807590) for your update, I'm glad to hear it works.


author: Shimon Rothschild
body: I did not get it working directly from Android Studio, but I did get it working using Sourcetree. I would share the steps, but my docs are missing steps (an indication of hacking and frustration!)

I still wish for step-by-step integrating with Android Studio on Mac. Thank you.


author: Norbert C
body: Hi [@Shimon Rothschild](/t5/user/viewprofilepage/user-id/4192791)

I think it's best to contact Android Studio support for a step-by-step guide, in case you're using a plugin to connect Android Studio to Bitbucket, you might need to reach out to the developers of that plugin.

Since Android Studio or its plugins are not developed by Atlassian and we're not familiar with this app or its plugins

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: cristiancarmona15
body: I can login with my bitbucket account after create app-password


Tags: android

bitbucket-cloud

cloud

development