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

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

Solutions on the web

via GitHub by galaxyfeeder
, 2 years ago
An error occured while executing doInBackground()
via GitHub by noamamiran
, 1 year ago
An error occured while executing doInBackground()
via GitHub by RoelRoel
, 2 years ago
An error occured while executing doInBackground()
via GitHub by LiquidSnack
, 2 years ago
An error occured while executing doInBackground()
via GitHub by nirabpudasaini
, 2 years ago
An error occured while executing doInBackground()
via GitHub by blueleader07
, 2 years ago
An error occured while executing doInBackground()
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:5969)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:921)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:4276)
at android.view.View.invalidate(View.java:10552)
at android.view.View.invalidate(View.java:10507)
at android.widget.TextView.checkForRelayout(TextView.java:6531)
at android.widget.TextView.setText(TextView.java:3789)
at android.widget.TextView.setText(TextView.java:3643)
at android.widget.TextView.setText(TextView.java:3618)
at com.prgguru.example.MusicAndroidActivity$LoadWebPageASYNC.doInBackground(MusicAndroidActivity.java:158)
at com.prgguru.example.MusicAndroidActivity$LoadWebPageASYNC.doInBackground(MusicAndroidActivity.java:152)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:234)

Users with the same issue

Once, 6 months ago
2 times, 8 months ago
7 times, 10 months ago
4 times, 11 months ago
4 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.