java.lang.NullPointerException: Appropriate Api was not requested.

Stack Overflow | E-Place | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.

Root Cause Analysis

  1. java.lang.NullPointerException

    Appropriate Api was not requested.

    at com.google.android.gms.common.internal.zzx.zzb()
  2. com.google.android
    zzd.getLastLocation
    1. com.google.android.gms.common.internal.zzx.zzb(Unknown Source)
    2. com.google.android.gms.common.api.internal.zzj.zza(Unknown Source)
    3. com.google.android.gms.location.LocationServices.zzi(Unknown Source)
    4. com.google.android.gms.location.internal.zzd.getLastLocation(Unknown Source)
    4 frames
  3. com.emergency.e_place
    MainActivity$1.onClick
    1. com.emergency.e_place.MainActivity$1.onClick(MainActivity.java:166)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4646)
    2. android.view.View$PerformClick.run(View.java:19403)
    3. android.os.Handler.handleCallback(Handler.java:733)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:146)
    6. android.app.ActivityThread.main(ActivityThread.java:5511)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame