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 GitHub by mvysny
, 1 year ago
Permission not granted for: CardContentProvider.query /decks (sk.baka.aedict3)
via GitHub by danielgindi
, 1 year ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=9189, uid=10110 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via GitHub by klinker41
, 2 years ago
No permission to write APN settings
via GitHub by xsorifc28
, 2 years ago
No permission to write APN settings
via GitHub by cbuemc
, 2 months ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=28318, uid=10080 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
via GitHub by cbuemc
, 2 months ago
Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=28318, uid=10080 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
java.lang.SecurityException: Permission not granted for: CardContentProvider.query /decks (sk.baka.aedict3)	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:491)	at android.content.ContentResolver.query(ContentResolver.java:434)	at com.ichi2.anki.api.AddContentApi.getDeckList(AddContentApi.java:387)	at sk.baka.aedict3.util.export.AnkiDroidConfig.getDeckNames(AnkiDroidConfig.java:81)	at sk.baka.aedict3.util.export.Exporter2.getDecks(Exporter2.java:666)	at sk.baka.aedict3.util.export.ExportEditorDialog.(ExportEditorDialog.java:140)	at sk.baka.aedict3.util.export.ExportEditorDialog.show(ExportEditorDialog.java:70)	at sk.baka.aedict3.util.export.Exporter2.addDirectlyToAnkiDroid(Exporter2.java:632)	at sk.baka.aedict3.util.export.Exporter2.onMenuItemClicked(Exporter2.java:173)	at sk.baka.aedict3.dict.JMDictEntryFragment.onOptionsItemSelected(JMDictEntryFragment.java:574)	at android.support.v4.app.Fragment.performOptionsItemSelected(Fragment.java:2070)	at android.support.v4.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:2159)	at android.support.v4.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:295)	at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:367)	at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)	at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)	at android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:620)	at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)	at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)	at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)	at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)	at android.support.v7.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:191)	at android.widget.AdapterView.performItemClick(AdapterView.java:310)	at android.widget.AbsListView.performItemClick(AbsListView.java:1145)	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3049)	at android.widget.AbsListView$3.run(AbsListView.java:3886)	at android.os.Handler.handleCallback(Handler.java:746)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:148)	at android.app.ActivityThread.main(ActivityThread.java:5443)	at java.lang.reflect.Method.invoke(Native Method)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)