LoginSignup
3
1

More than 1 year has passed since last update.

【AndroidStudio】Incorrect credentials insufficient scopes granted to token. を解決した 【GitHub】

Posted at

発生した事象

AndroidStudio(v 4.1.2)にて、GitHubとの連携中に発生したエラー。

試したこと

①ユーザー/パスワードでログインを試みる

結果:エラーが発生する

Invalid authentication data. 404 not Found - Not Found

20210618-015319.png

②トークンでのログインを試みる

結果:エラーが発生する

Incorrect credentials insufficient scopes granted to token

ダウンロード.png

トークンの作成方法はこちら

解決に至るまで

今回は、トークン でログインしてみます。

①トークンの設定の見直す

ログインできない理由のひとつとして、トークンの設定が間違っている 可能性があるようです。

↓下記画像の通りに設定しました

20210618-015825.png

②serverを"https://github.com/"に変更する

serverのデフォルト設定は"github.com"なのですが、そのままだとうまくいかないことがあるようです。
なので念のため、"https://github.com"で設定しました。

ダウンロード (3).png

③ログイン成功

なんとかログイン成功することができました。

20210618-023059.png

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1