Android Studio Ladybug 2024.2.1 Patch1添加Google账户失败求助
Android Studio添加Google账户授权失败问题解决办法
针对你遇到的User authorization failed (Parameter specified as non-null is null: method com.google.gct.login2.settings.GoogleLoginApplicationSettings$Companion.getRefreshTokenKey, parameter user)错误,以下是几种未尝试过的可行方案:
重置Google登录配置文件
- 完全关闭Android Studio
- 定位到IDE的Google服务配置目录:
- Windows:
C:\Users\<你的用户名>\.AndroidStudio<版本号>\config\google-services - macOS:
~/Library/Application Support/Google/AndroidStudio<版本号>/google-services - Linux:
~/.AndroidStudio<版本号>/config/google-services
- Windows:
- 删除该目录下的所有文件
- 重启Android Studio后重新尝试添加账户
修复IDE安装文件
- 打开Android Studio,点击顶部菜单栏的
Help - 选择
Check for Updates,将IDE更新至最新稳定版 - 若更新后问题仍存在,使用
Help->Repair IDE功能修复可能损坏的IDE文件
- 打开Android Studio,点击顶部菜单栏的
切换密码存储方式
- 进入
File->Settings(Windows/Linux)或Android Studio->Settings(macOS) - 依次打开
Appearance & Behavior->System Settings->Passwords - 选择
Do not save, forget passwords after restart选项 - 重启IDE后重新尝试登录
- 进入
内容的提问来源于stack exchange,提问作者Muhammad Younas
相关产品推荐
相关产品推荐

