Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

  2. ,
    Expert 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()

Solutions on the web

via Stack Overflow by dayroma
, 1 year ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=1580, uid=10108 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via 2cto.com by Unknown author, 2 years ago
Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/data/phones from pid=27697, uid=10194 requires android.permission.READ_CONTACTS, or grantUriPermission()
via Stack Overflow by user2850116
, 2 years ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=1071, uid=10066 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via Stack Overflow by TerryChao
, 2 years ago
Permission Denial: reading com.google.android.gsf.gservices.GservicesProvider uri content://com.google.android.gsf.gservices/prefix from pid=12038, uid=10082 requires com.google.android.providers.gsf.permission.READ_GSERVICES, or grantUriPermission()
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=1580, uid=10108 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()	at android.os.Parcel.readException(Parcel.java:1599)	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)	at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)	at android.content.ContentResolver.query(ContentResolver.java:498)	at android.content.ContentResolver.query(ContentResolver.java:441)	at ifh.i(PG:5904)	at ifh.h(PG:619)	at ifh.(PG:187)	at iel.c(PG:4045)	at gen_binder.root.RootModule$Generated.a(PG:1131)	at nmw.e(PG:415)	at nmw.b(PG:242)	at nmw.a(PG:207)	at nmw.a(PG:493)	at ier.a(PG:2195)	at ier.onPerformSync(PG:125)	at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:272)