java.lang.SecurityException

tip

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

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

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

  • Maps not working
    via Stack Overflow by Ram
    ,
  • Error on getting gps location
    via Stack Overflow by João Nunes
    ,
  • Location Permissions on Android 5.1
    via Stack Overflow by Visionwriter
    ,
  • GitHub comment 572#220119433
    via GitHub by ecgreb
    ,
    • java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission. at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.location.ILocationManager$Stub$Proxy.getLastLocation(ILocationManager.java:799) at android.location.LocationManager.getLastKnownLocation(LocationManager.java:1248) at com.vblast.dir.g.e(SourceFile:177) at com.vblast.dir.g.d(SourceFile:75) at com.vblast.dir.uberstations.b.onPreExecute(SourceFile:240) at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:604) at com.vblast.dir.uberstations.b.a(SourceFile:226) at com.vblast.dir.uberstations.DirService.a(SourceFile:123) at com.vblast.dir.AbstractDirService.onStartCommand(SourceFile:85) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4062) at android.app.ActivityThread.access$2400(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1897) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

    Users with the same issue

    asvid
    9 times, last one,
    Unknown visitor1 times, last one,
    filipebatista
    12 times, last one,
    Hiren Amaliyar
    8 times, last one,
    Aravind
    86 times, last one,
    229 more bugmates