Skip to content

[Solved] Android Studio Cannot Login GitHub: invalid authentication data.404 Not Found --Not Found

Last Updated on 2021-10-13 by Clay

Today I use Android Studio to develop an application, and want to create a GitHub repository. But I did not expect, The GitHub login verification function provided by Android Studio IDE cannot be used.

Enter the correct account and password, but the following error message will still be returned:

invalid authentication data.404 Not Found --Not Found


The window is as follows:

By the way, in the other IDEs developed by Jetbrains have no this problem.


Solution

When you cannot log in to GitHub using your account, you can actually use token to obtain the authentication.

First, log in your GitHub account via browser, select the right top corner user icon, select Settings.


In the options on the left, select Developer settings.


Then, also in the options on the left, select Personal access tokens, and then select Generate new token to generate a new token.


You can name the token you want and select the permissions you want to access to this token. If you are not sure which permissions you need, suggest choosing them all.


Next, you will get the password of this token, which is the part converted by the gray rect in my picture.

Copy it.


Back to the Android Studio login GitHub window, this time select Use Token to verify.


This time, you will probably find success!


References


Read More

3 thoughts on “[Solved] Android Studio Cannot Login GitHub: invalid authentication data.404 Not Found --Not Found”

  1. Pingback: Android Studio Login To Github? The 20 Correct Answer - Brandiscrafts.com

  2. Pingback: github login android – european-borderlands.org

Leave a Reply