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 web18693

  • 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 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: Lcom/google/android/gms/iid/InstanceID; at com.nifty.cloud.mb.core.NCMBInstallation.getDeviceTokenFromGCM(NCMBInstallation.java:457) at com.nifty.cloud.mb.core.NCMBInstallation$1.doInBackground(NCMBInstallation.java:441) at com.nifty.cloud.mb.core.NCMBInstallation$1.doInBackground(NCMBInstallation.java:437) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) ... 3 more Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.iid.InstanceID" on path: DexPathList[[zip file "/data/app/jp.co.hoge.sample-2/base.apk"],nativeLibraryDirectories=[/data/app/jp.co.hoge.sample-2/lib/arm64, /vendor/lib64, /system/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) ... 8 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

    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