java.lang.SecurityException

Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.

Samebug tips5

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()


rafaelrafael

You need to request READ_PHONE_STATE permissions before using of this method.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1297

Stack trace

  • java.lang.SecurityException: Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations. at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at com.google.android.gms.location.internal.zzi$zza$zza.zza(Unknown Source) at com.google.android.gms.location.internal.zzk.getLastLocation(Unknown Source) at com.google.android.gms.location.internal.zzl.getLastLocation(Unknown Source) at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source) at com.google.android.gms.location.internal.zzd$1.zza(Unknown Source) at com.google.android.gms.internal.zznt$zza.zzre(Unknown Source) at com.google.android.gms.internal.zzoc.connect(Unknown Source) at com.google.android.gms.internal.zzoc.zzd(Unknown Source) at com.google.android.gms.internal.zzoh.zzd(Unknown Source) at com.google.android.gms.internal.zzof.zzd(Unknown Source) at com.google.android.gms.location.internal.zzd.getLastLocation(Unknown Source) at com.my.package.location.PlayServicesLocationFinder.onConnected(PlayServicesLocationFinder.java:74) at com.google.android.gms.common.internal.zzl.zztI(Unknown Source) at com.google.android.gms.internal.zzof.zzc(Unknown Source) at com.google.android.gms.internal.zzod.zzsb(Unknown Source) at com.google.android.gms.internal.zzod.begin(Unknown Source) at com.google.android.gms.internal.zzoh.zzc(Unknown Source) at com.google.android.gms.internal.zznw.onConnected(Unknown Source) at com.google.android.gms.common.internal.zzk$1.onConnected(Unknown Source) at com.google.android.gms.common.internal.zzd$zzj.zzl(Unknown Source) at com.google.android.gms.common.internal.zzd$zza.zztp(Unknown Source) at com.google.android.gms.common.internal.zzd$zza.zztp(Unknown Source) at com.google.android.gms.common.internal.zzd$zze.zztr(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:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

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

Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
ben.slama.jihedben.slama.jihed
12 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
230 more bugmates