java.lang.RuntimeException

An error occured 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 web2751

Stack trace

  • java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 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.example.walid.livecapture.UploadActivity$UploadFileToServer.uploadFile(UploadActivity.java:163) at com.example.walid.livecapture.UploadActivity$UploadFileToServer.doInBackground(UploadActivity.java:140) at com.example.walid.livecapture.UploadActivity$UploadFileToServer.doInBackground(UploadActivity.java:118) at android.os.AsyncTask$2.call(AsyncTask.java:288) 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.example.walid.livecapture-1/base.apk\"],nativeLibraryDirectories=[/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 visitor
Unknown visitorOnce,
Hiren AmaliyarHiren Amaliyar
7 times, last one
Unknown visitor
Unknown visitorOnce,
filipebatistafilipebatista
6 times, last one
Unknown UserUnknown User
Once,
158 more bugmates