java.lang.SecurityException

Requires READ_PHONE_STATE: Neither user 10131 nor current process has android.permission.READ_PHONE_STATE.

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

  • Stack trace

    • java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10131 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at com.android.vending.billing.IInAppBillingService$Stub$Proxy.getSkuDetails(IInAppBillingService.java:251) at com.inapp.util.IabHelper.querySkuDetails(IabHelper.java:920) at com.inapp.util.IabHelper.queryInventory(IabHelper.java:550) at com.inapp.util.IabHelper.queryInventory(IabHelper.java:522) at com.inapp.util.IabHelper$2.run(IabHelper.java:617) at java.lang.Thread.run(Thread.java:818)

    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 visitor
    Unknown visitor2 times, last one
    Unknown UserUnknown User
    2 times, last one
    Indri YunitaIndri Yunita
    2 times, last one
    franky lifranky li
    4 times, last one
    Ranjana DangolRanjana Dangol
    12 times, last one
    230 more bugmates