Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 595
Kohl Stark Avatar asked Nov 23 '20 08:11

Kohl Stark


2 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.

like image 145
poetrasapoetra Avatar answered Nov 09 '22 15:11

poetrasapoetra


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.

like image 33
Yıldırım Avatar answered Nov 09 '22 15:11

Yıldırım