Reputation: 1104
I can't sign in to GitHub on Android studio, as the picture shows.
I have reset my password, tried to put ' https:// ' in the server box, and still doesn't let me in and shows the same message.
I can no longer update the project I am working on with my team.
For some reason I was still able to commit and push to the repo and the changes were visible online.
Upvotes: 96
Views: 98976
Reputation: 1
For me login didn't work had to remove existing github profile in android studio and add again with renewed token
Upvotes: 0
Reputation: 21
Go to Settings > Version Control > Git > Mark the "Use credential Helper" box and you're done.
Upvotes: 2
Reputation: 723
Login with password deprecated, please use below method
In Mac Change Token --> Android Studio --> preferences --> Version Control --> GitHub --> Change Token
In GitHub Account GitHub Generate Token --> Settings --> Developer Settings --> Personal Access Token
Upvotes: 1
Reputation: 2307
Try this:
On GitHub:
On Android Studio:
Upvotes: 229
Reputation: 1396
I was authenticated in Android Studio Arctic Fox (Latest Version) using a personal access token, but still, I was getting this error on August 14, 2021:
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
I generated a new access token on github.com, removed my GitHub account from Android Studio, and added the account again with the new access token. But still, it was showing the same error.
Reading other solutions on SO, I downloaded the GitHub CLI, and added my GitHub account in the windows command prompt with the access token successfully, and tried to push the repo from Android Studio again, which again failed.
Then following this article, I did the following in command line:
cd <project-directory>
git remote set-url origin https://<TOKEN>@github.com/<user_name>/<repo_name>.git
Pushed again from Android Studio. It worked finally!
Upvotes: 5
Reputation: 4110
In the latest version of Android studio, click Use token
and then Generate
. Your browser will open the link and then click on Generate Token
, copy the code and paste it on Android studio
.
Upvotes: 2
Reputation: 596
Edit** in step 3, you must select (repo, gist, and read:org)
Upvotes: 25
Reputation: 13129
For me, after doing the token sign up using the Android studio UI in Preferences - Github
also requested again username/password after doing git pull, what I did to solve it is to place my username and in password paste again the copied token
Steps
preferences-github
press the -
sign if you have another account and press the +
sign to add a new accountapply
and OK
Upvotes: 16
Reputation: 1327004
Check if you have activated 2FA on your account.
If you have (two-factor authentication), then the password you should enter would actually be a PAT (Personal Access Token), in your settings, not your GitHub account password.
Upvotes: 9