java.lang.RuntimeException: Unable to start activity ComponentInfo{com.johncbell.atrixtrucking/com.johncbell.atrixtrucking.MainActivity2}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference

Stack Overflow | Johncbell | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android App: Caused by: java.lang.NullPointerException: Attempt to invoke interface method on a null object reference

    Stack Overflow | 9 months ago | Johncbell
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.johncbell.atrixtrucking/com.johncbell.atrixtrucking.MainActivity2}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference
  2. 0

    java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters

    Stack Overflow | 2 years ago | Sinyuk
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sinyuk.contentproviderdemo/com.example.sinyuk.contentproviderdemo.UserDictActivity}: java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters.
  3. 0

    sqlite: java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters

    blogspot.com | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sinyuk.contentproviderdemo/com.example.sinyuk.contentproviderdemo.UserDictActivity}: java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range. The statement has 0 parameters.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Preferences Support Library - SwitchPreference not working

    Stack Overflow | 2 years ago | user3420815
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.package/com.my.package.Main}: android.view.InflateException: Binary XML file line #4: Error inflating class (not found)SwitchPreference
  6. 0

    Start fragment from MainActivity

    Stack Overflow | 2 years ago | Bryan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.waddapp.bryan.waddapp/com.waddapp.bryan.waddapp.MainActivity}: java.lang.NullPointerException: Attempt to write to field 'android.support.v4.app.FragmentManagerImpl android.support.v4.app.Fragment.mFragmentManager' on a null object reference

  1. Indri Yunita 76 times, last 4 days ago
  2. andreeaa marin 8 times, last 4 weeks ago
  3. ahmed 6 times, last 1 month ago
  4. justCodeit 59 times, last 2 months ago
  5. Donsy 4 times, last 3 months ago
78 more registered users
17 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{com.johncbell.atrixtrucking/com.johncbell.atrixtrucking.MainActivity2}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
    3. android.app.ActivityThread.access$800(ActivityThread.java:151)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    5. android.os.Handler.dispatchMessage(Handler.java:102)
    6. android.os.Looper.loop(Looper.java:135)
    7. android.app.ActivityThread.main(ActivityThread.java:5254)
    7 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames