java.lang.RuntimeException: An error occurred while executing doInBackground()


Samebug tips

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


8 months ago
Expert 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.


9 months ago
Expert tip

Solutions on the web

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

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

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

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

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

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

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

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

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

Solution icon of github
via GitHub by kunall17
, 9 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

2 times, 1 month ago
37 times, 1 month ago
194 times, 3 months ago
21 times, 3 months ago
3 times, 4 months ago
238 more bugmates