java.lang.RuntimeException

An error occured while executing doInBackground()

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web401

  • via Stack Overflow by user4549769
    ,
  • Stack trace

    • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352) at java.util.concurrent.FutureTask.setException(FutureTask.java:219) at java.util.concurrent.FutureTask.run(FutureTask.java:239) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:841) Caused by: 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)

    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

    Unknown visitor
    Unknown visitorOnce,
    Diogo JaymDiogo Jaym
    2 times, last one
    jkjk
    8 times, last one
    dmitrydmitry
    Once,
    ReichReich
    Once,
    28 more bugmates