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()

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 web2457

  • Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
  • via GitHub by RyanTG
    , 8 months ago
    Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
  • Client must have ACCESS_FINE_LOCATION permission to request PRIORITY_HIGH_ACCURACY locations.
  • 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.ab.a(Unknown Source) at com.google.android.gms.location.internal.af.a(Unknown Source) at com.google.android.gms.location.internal.aj.a(Unknown Source) at com.google.android.gms.location.internal.i.a(Unknown Source) at com.google.android.gms.location.internal.i.a(Unknown Source) at com.google.android.gms.b.aan.b(Unknown Source) at com.google.android.gms.b.abd.c(Unknown Source) at com.google.android.gms.b.abd.b(Unknown Source) at com.google.android.gms.b.aby.b(Unknown Source) at com.google.android.gms.b.abs.b(Unknown Source) at com.google.android.gms.location.internal.h.a(Unknown Source) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.startUpdating(SourceFile:136) at io.nlopez.smartlocation.location.providers.LocationGooglePlayServicesProvider.onConnected(SourceFile:177)

    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 user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    12 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    232 more bugmates