java.lang.SecurityException

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

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()

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Class not working, Error occured?
    via Stack Overflow by Hari
    ,
    • 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.<init>(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)

    Users with the same issue

    iridiciridic
    2 times, last one,
    AjeetAjeet
    1 times, last one,
    ashish.sadhwaniashish.sadhwani
    2 times, last one,
    filipebatistafilipebatista
    21 times, last one,
    winer222winer222
    3 times, last one,
    231 more bugmates