Can't log in to GitHub on Android Studio

后端 未结 3 2258
长发绾君心
长发绾君心 2020-12-31 13:45

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

I have reset my password, tried to put \' https:// \' in the server box, and still doesn\'

相关标签:
3条回答
  • 2020-12-31 14:17

    Try this:

    • Log into gitHub, click your avatar in the top righthand corner,
    • Choose settings -> Developer settings -> Personal Access Tokens
    • Click the button to Generate New Token
    • Add a note if you want, like "Android Studio"
    • Select repo(all), read:org (under admin:org), gist
    • Click Generate Token button
    • Copy the token
    • In Android Studio, File, Settings, Version Control, Github, add an account
    • Click the Use Token hyperlink like in your screenshot
    • Paste your token, click login, click ok

    0 讨论(0)
  • 2020-12-31 14:17

    When I login with username and password, I got this error: 401 Unauthorized (password is true)

    Then I created a token like @tannergr, this time I got Insufficient security scopes error.

    After that, I added all privileges to the token. Everything was looking normal. I tried to clone repo from url, unfortunately I got Clone failed: Unable to create destination directory error.

    I am using Android Studio version 4.1.1 on my new computer. Android Studio makes me sad with new bugs in every version.

    We are not alone there are another question Android Studio, Github login problem incorrect credentials

    0 讨论(0)
  • 2020-12-31 14:21

    Check if you have activated 2FA on your account.

    If you have (two-factor authentication), then the password you should enter would actually be a PAT (Personal Access Token), in your settings, not your GitHub account password.

    0 讨论(0)
提交回复
热议问题