java.lang.SecurityException

caller uid 10250 lacks any of android.permission.GET_ACCOUNTS

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

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.SecurityException: caller uid 10250 lacks any of android.permission.GET_ACCOUNTS at android.os.Parcel.readException(Parcel.java)

    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

    Hiren AmaliyarHiren Amaliyar
    669 times, last one
    AravindAravind
    86 times, last one
    Indri YunitaIndri Yunita
    199 times, last one
    Unknown UserUnknown User
    2 times, last one
    0x600x60
    3 times, last one
    232 more bugmates