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.

  • GitHub comment 330#228449487
    via GitHub by barbeau
    ,
  • GitHub comment 48#305614134
    via GitHub by ncapdevi
    ,
  • Crash after Permission
    via GitHub by boredom2
    ,
  • GitHub comment 68#192697926
    via GitHub by xuefer
    ,
  • App Crashed While getting device Id
    via Stack Overflow by user2566484
    ,
    • java.lang.SecurityException: Client must have ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to perform any location operations. at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at com.google.android.gms.internal.lx$a$a.bW(Unknown Source) at com.google.android.gms.internal.ly.getLastLocation(Unknown Source) at com.google.android.gms.internal.lz.getLastLocation(Unknown Source) at com.google.android.gms.location.LocationClient.getLastLocation(Unknown Source) at com.joulespersecond.seattlebusbot.util.LocationHelp.getLocation2(LocationHelp.java:103) at com.joulespersecond.seattlebusbot.map.StopMapController.onLoadFinished(StopMapController.java:274) at com.joulespersecond.seattlebusbot.map.StopMapController.onLoadComplete(StopMapController.java:309) at com.joulespersecond.seattlebusbot.map.StopMapController.onLoadComplete(StopMapController.java:135) at android.support.v4.content.Loader.deliverResult(Loader.java:104) at com.joulespersecond.seattlebusbot.map.StopMapController$StopsLoader.deliverResult(StopMapController.java:378) at com.joulespersecond.seattlebusbot.map.StopMapController$StopsLoader.deliverResult(StopMapController.java:340) at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:223) at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:61) at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:461) at android.support.v4.content.ModernAsyncTask.access$500(ModernAsyncTask.java:47) at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:474) 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

    filpgame
    9 times, last one,
    Unknown visitor1 times, last one,
    Indri Yunita
    2 times, last one,
    justCodeit
    31 times, last one,
    Adrien
    16 times, last one,
    229 more bugmates