java.lang.SecurityException

This exception has no message.

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 web236

  • via Coderanch by Pramod P Deore, 6 months ago
    This exception has no message.
  • This exception has no message.
  • via Coderanch by John Danek, 6 months ago
    This exception has no message.
  • Stack trace

    • java.lang.SecurityException 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

    669 times, 1 week ago
    86 times, 1 month ago
    201 times, 1 month ago
    2 times, 1 month ago
    3 times, 3 months ago
    232 more bugmates