9 Replies to “Google Sign-In Android Example [Tutorial]”

  1. The sign in works fine for already existing email address, however, if i try to sigh up from system’s sign in dialog, the display number is null after successful sign up. any clue?

  2. I get the following error:
    W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.view.View.getVisibility()’ on a null object reference
    W/System.err: at android.view.ViewRootImpl.getHostVisibility(ViewRootImpl.java:1809)
    W/System.err: at android.view.ViewRootImpl.handleAppVisibility(ViewRootImpl.java:1445)
    at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:4841)
    W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
    W/System.err: at android.os.Looper.loop(Looper.java:214)
    W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7078)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

  3. I am getting null object reference on sign out button click

    java.lang.NullPointerException: Attempt to invoke virtual method ‘com.google.android.gms.tasks.Task com.google.android.gms.auth.api.signin.GoogleSignInClient.signOut()’ on a null object reference

  4. Hello Sir,
    How to create a Custom Google Sign in Button in Android.
    I create Different deigns for Google Button.
    Please help me and Please create a one Post on How to create a Custom Google Sign in Button in Android.

  5. googleSignInClient object referred in signout method is not the same used in signin. This throws nullpointer exception when signout button is clicked.
    To fix, refer to the original object of signin method.

Leave a Reply

Your email address will not be published. Required fields are marked *