7 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

Leave a Reply

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