java.lang.RuntimeException

An error occurred while executing doInBackground()


Samebug tips5

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

You need to request MANAGE_USERS 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 web18947

Solution icon of github
via GitHub by lanceschi
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by billmeek
, 6 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by viperfx
, 1 year ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by ZaidWaseem10
, 3 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by Nairou
, 11 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by philipwhiuk
, 7 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by bigbighill
, 5 months ago
An error occurred while executing doInBackground()

Solution icon of github
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by mikolasan
, 2 months ago
An error occurred while executing doInBackground()

Solution icon of github
via GitHub by Blystad
, 11 months ago
An error occurred while executing doInBackground()

Stack trace

  • java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.calendar.CalendarProvider2 from ProcessRecord{aad9f2f 18717:com.android.calendar/u0a8} (pid=18717, uid=10008) requires android.permission.READ_CALENDAR or android.permission.WRITE_CALENDAR at android.os.Parcel.readException(Parcel.java) at android.os.Parcel.readException(Parcel.java) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java) at android.app.ActivityThread.acquireProvider(ActivityThread.java) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java) at android.content.ContentResolver.query(ContentResolver.java) at android.content.ContentResolver.query(ContentResolver.java) at com.miui.calendar.util.CalendarUtils.loadDaysOffInfo(CalendarUtils.java) at com.android.calendar.homepage.AllInOneActivity$LoadDaysOffInfoTask.doInBackground(AllInOneActivity.java) at com.android.calendar.homepage.AllInOneActivity$LoadDaysOffInfoTask.doInBackground(AllInOneActivity.java) at android.os.AsyncTask$2.call(AsyncTask.java) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 3 more

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

194 times, 1 month ago
21 times, 1 month ago
3 times, 2 months ago
8 times, 3 months ago
7 times, 4 months ago
234 more bugmates