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
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.
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.
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 ...
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.
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:
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With