androidandroid-studiogoogle-chromegoogle-signinintellij-plugin

Adding Google Account in Android Studio IDE Not Working - Android Studio Ladybug | 2024.2.1 Patch 1


I am getting below error while adding the Google Account in Android Studio I have try the below methods still having same issue

  1. Changing the Browser

  2. Clearing the Cache of both browser and IDE

  3. Removing the Access on Google Account for Android Studio.

    Error: User authorization failed (Parameter specified as non-null is null: method com.google.gct.login2.settings.GoogleLoginApplicationSettings$Companion.getRefreshTokenKey, parameter user)

enter image description here


Solution

  • I am able to fix the issue by below steps

    1. Update the Android Studio to the latest version

      Android Studio Meerkat | 2024.3.1
      Build #AI-243.22562.218.2431.13114758, built on February 25, 2025
      Runtime version: 21.0.5+-12932927-b750.29 aarch64
      VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
      Toolkit: sun.lwawt.macosx.LWCToolkit
      macOS 15.3.1
      GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
      Memory: 2048M
      Cores: 12
      Metal Rendering is ON
      Registry:
        ide.experimental.ui=true
      
      
    2. Run the Below Commands to clear the Android Studio Setting and Cache (Some command might not work but it's ok execute all the commands in sequence)

    rm -rf ~/Library/Preferences/AndroidStudio*
    rm -rf ~/Library/Application\ Support/Google/AndroidStudio*
    rm -rf ~/Library/Caches/AndroidStudio*
    rm -rf ~/Library/Logs/AndroidStudio*
    rm -rf ~/.AndroidStudio*