Android Studio GitHub Login "Incorrect credentials. Request response. 401 Unauthorized

Viewed 12680

I am having trouble logging in to my GitHub Account through Android Studio. I don't know why I am getting this error and there doesn't seem to be much about it out there. I made sure to have Git Installed and even tried doing this using a token. See attached images. Any help is appreciated. Thanks in advance

Login credentails

Token

4 Answers

I have same issue and just solved it. I'm using Android Studio 4.1

I try using Personal Access Token and select scopes needed for android studio Token Scopes. In Android Studio GitHub setting login using token, enter "http://github.com" (not "github.com") and generated token in the provided field then click log in.

My login was succeed with that setup.

When you generate your token

  1. repo - select everything
  2. gist - select everything
  3. org - select only read:org

and generate your token. Now you can add your account. It is work for me.

When generate a new token in your git hub profile, select repo gist and read:org. It worked out for me.

enter image description here

enter image description here After copying, open the use token and paste !

Related