问题
I'm getting this issue while logging in on GitHub on Android Studio:
Can't login: Can't get user info 404: Not found

Has someone faced this issue? How can I get around this?
回答1:
I use "github.com" as host (not the whole clone url), and my github login and password and can login without any issues.
回答2:
I have faced this problem too. Try using token to login.
Log in to github.com on the browser. Go to Settings -> Developer settings -> Personal access tokens. There you can create a new token and then, go back to Android Studio, select Enter Token at the login prompt.
回答3:
In host you only have to put 'http://github.com'
Nothing more
回答4:
I'm working on 4.1.1 Android Studio and it didn't allow me to log in with Login + Password neither.
So I succeeded generating a token from Github (Account -> Settings -> Personal access tokens - > Generate new token), but make sure before generating the token to check the "repo", "gist" and "read:org" options.
Everything's working fine from there.
Have fun coding !
回答5:
For me the problem was that the repository URL was set with http:// but the credential goes to the same URL but with https://.
changing the repository URL to https:// solved my problem.
回答6:
1- Go to your github page,
2- Open Settings menu and create a new token
3- Copy new token
4- Open Androdi studio goto VCS -> import into version control -> Share Project in Git Hub login
5- Use Token option
6- Paste token you created and copied
7- Click login
No need to change url
I am using Android Studio 4.1
回答7:
I faced the this issue for my private repository, So in Github I created new access token and given all access for this token. Use this token in Android studio, It worked for me
回答8:
Using 'https://github.com/' and my credentials, I get access
回答9:
I'm done with this problem, use the token to login. create tokens in this way; simply checklist on
-repo -admin:org -gist Ceklist Token
回答10:
From Android Studio.
- Go to Settings
- Go to Github
- Make sure you login in using a created Auth Token Key from Github
From Github.
- Go to Preferences
- Go to Developer Mode
- Generate a New Token Key and give it all the rights to access Github account
- Copy new Generated key into Android Access token and enter OK when done.
来源:https://stackoverflow.com/questions/27505710/android-studio-cant-login-to-github