java.lang.RuntimeException

An error occurred while executing doInBackground()

Samebug tips1

You need to setup a GlideModule before use Glide.

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

Solutions on the web18698

  • via GitHub by lanceschi
    , 1 year ago
    An error occurred while executing doInBackground()
  • via GitHub by billmeek
    , 5 months ago
    An error occurred while executing doInBackground()
  • via GitHub by viperfx
    , 1 year 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:309) 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 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 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.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/entity/ContentType; at org.apache.http.entity.mime.content.FileBody.\u003cinit>(FileBody.java:89) at com.burak.ege.anlatokulunu.video.Upload$UploadFileToServer.uploadFile(Upload.java:166) at com.burak.ege.anlatokulunu.video.Upload$UploadFileToServer.doInBackground(Upload.java:143) at com.burak.ege.anlatokulunu.video.Upload$UploadFileToServer.doInBackground(Upload.java:121) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 4 more Caused by: java.lang.ClassNotFoundException: Didn't find class \"org.apache.http.entity.ContentType\" on path: DexPathList[[zip file \"/data/app/com.burak.ege.anlatokulunu-1/base.apk\"],nativeLibraryDirectories=[/data/app/com.burak.ege.anlatokulunu-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

    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 user
    Once, 1 week ago
    7 times, 1 week ago
    Unknown user
    Once, 1 week ago
    6 times, 2 weeks ago
    Once, 1 month ago
    158 more bugmates