java.lang.ClassCastException

com.currentlocationdemo.MapsActivity cannot be cast to com.google.android.gms.location.LocationListener

Solutions on the web19039

  • com.currentlocationdemo.MapsActivity cannot be cast to com.google.android.gms.location.LocationListener
  • via Stack Overflow by patrick1980
    , 8 months ago
    ru.patrick.gps10.MapsActivity cannot be cast to com.google.android.gms.location.LocationListener
  • com.buschecker.williamvenner.buschecker.MainActivity$4 cannot be cast to com.google.android.gms.location.LocationListener
  • Stack trace

    • java.lang.ClassCastException: com.currentlocationdemo.MapsActivity cannot be cast to com.google.android.gms.location.LocationListener at com.currentlocationdemo.MapsActivity.onConnected(MapsActivity.java:228) at com.google.android.gms.common.internal.zzl.zzo(Unknown Source) at com.google.android.gms.internal.zzpy.zzm(Unknown Source) at com.google.android.gms.internal.zzpw.zzapp(Unknown Source) at com.google.android.gms.internal.zzpw.onConnected(Unknown Source) at com.google.android.gms.internal.zzqa.onConnected(Unknown Source) at com.google.android.gms.internal.zzpp.onConnected(Unknown Source) at com.google.android.gms.common.internal.zzk$1.onConnected(Unknown Source) at com.google.android.gms.common.internal.zzd$zzj.zzasd(Unknown Source) at com.google.android.gms.common.internal.zzd$zza.zzc(Unknown Source) at com.google.android.gms.common.internal.zzd$zza.zzv(Unknown Source) at com.google.android.gms.common.internal.zzd$zze.zzasf(Unknown Source) at com.google.android.gms.common.internal.zzd$zzd.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.