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

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Fatal error on Android Studio E/AndroidRuntime: FATAL EXCEPTION: main

    Stack Overflow | 2 months ago | ASHIQ AHAMMED ASH
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pft.ashiqahammedash.myapplication/com.pft.ashiqahammedash.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference
  2. 0

    In Android Studio 2.2.3 I'm unable to run my app?

    Stack Overflow | 2 months ago | Sanjeev Singh
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.linux.basicpercentagecalculator/com.example.linux.basicpercentagecalculator.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference
  3. 0

    How to set latitude & longitude in url if it is changing dynamically & to get list view via json?

    Stack Overflow | 8 months ago | user6313669
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.comida/com.comida.ListViewActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' on a null object reference
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java - android 组件RecyclerView的使用指教? - SegmentFault

    segmentfault.com | 7 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.fiz.myapplication/com.example.fiz.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setLayoutManager(android.support.v7.widget.RecyclerView$LayoutManager)' on a null object reference
  6. 0

    Android Studio Runtime Error

    Stack Overflow | 1 week ago | Roshan Rajeev
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myfirstapp.myapplication/com.myfirstapp.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.FloatingActionButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference

  1. Indri Yunita 7 times, last 2 months ago
  2. andreeaa marin 184 times, last 3 months ago
  3. Reich 59 times, last 4 months ago
  4. gamebusterz 42 times, last 1 month ago
  5. Emrah Küçük 3 times, last 4 months ago
42 more registered users
14 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.pft.ashiqahammedash.myapplication/com.pft.ashiqahammedash.myapplication.MainActivity}: 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.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
    2 frames