Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't log in to GitHub on Android Studio

I can't sign in to GitHub on Android studio, as the picture shows.

enter image description here

I have reset my password, tried to put ' https:// ' in the server box, and still doesn't let me in and shows the same message.

I can no longer update the project I am working on with my team.
For some reason I was still able to commit and push to the repo and the changes were visible online.

like image 936
tired_house Avatar asked Nov 17 '20 05:11

tired_house


People also ask

Can I use GitHub desktop with Android Studio?

Select the Pull Request you want to test in GitHub Desktop. Click on it and wait for it to fetch that branch. Once it is done, Android Studio will automatically be configured to work on that branch and you can build/run the code to test the pull request.


Video Answer


2 Answers

Try this:

On GitHub:

  • Log in -> Click on your avatar in the top right hand corner
  • Choose Settings -> Developer settings -> Personal access tokens
  • Click on the "Generate new token" button
  • Add a note if you want, like "Android Studio"
  • Select repo(all), read:org (under admin:org), gist
  • Click on the "Generate token" button
  • Copy the token

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

"Log in to GitHub" prompt

like image 111
Glen Avatar answered Nov 12 '22 23:11

Glen


  1. Go to the https://github.com/settings/tokens
  2. Click Personal Access Token from the left menu.
  3. Select repo and gist
  4. Generate your token
  5. Paste the token to your Android Studio

Edit** in step 3, you must select (repo, gist, and read:org)

like image 37
enestatli Avatar answered Nov 13 '22 01:11

enestatli