Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio, Github login problem incorrect credentials

I've started working with Android Studio and I found a problem when trying to connect to Github. I've tried restarting Android Studio and even creating a new project, but I am not able to login.

I installed Git and it´s working in the local repository.

The problems are:

Incorrect credentials
Request response: 401 unauthorized

Android Studio Screenshot

like image 411
cristiand395 Avatar asked Nov 13 '20 23:11

cristiand395


People also ask

How do I authorize my Android studio for github?

On Android Studio: Go to File -> Settings -> Version Control -> GitHub -> Add an account. Click on the "Use Token" hyperlink, like in your screenshot. Paste your token, click login, click ok.

How to fix Android Studio failed to login to GitHub?

I solved it simpler way doing your step by clicking Android Studio -> Preferences -> Version Control -> Github & you will prompted to login due to the failed. (NOTE: I am using android studio 4.0.1 might work for > 4.0) – Marfin. F Check if you have activated 2FA on your account.

How to connect to GitHub from Android Studio?

On Android Studio: 1 Go to File -> Settings -> Version Control -> GitHub 2 Add an account (plus button on the right side, choose "log in with token") 3 Click the "Use Token" hyperlink, like in your screenshot 4 Paste your token, click login, click ok More ...

How do I log into GitHub with two-factor authentication?

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. With activated 2FA only way was to generate token. I was wondering why I couldn't log in normally with my credentials.

How do I open an issue on GitHub?

Sign up for a free GitHub account to open an issue and contact its maintainers and the community. By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account No matter what I try to do with this plugin, I get the error:


Video Answer


2 Answers

You can use the Project from Version Control, it has git.

What I did was I logged in through a token, it also tells you what needs to be added to the token and that worked for me.

You can create the token here: https://github.com/settings/tokens

like image 195
Kage Krigeren Avatar answered Sep 19 '22 11:09

Kage Krigeren


I got the issue solved by generating a token from https://github.com/settings/tokens and using it to add account option on Android Studio>File>settings>GitHub

like image 30
Ram Avatar answered Sep 19 '22 11:09

Ram