E/GlideExecutor: Request threw uncaught throwable\njava.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/disklrucache/DiskLruCache;\n\tat com.bumptech.glide.load.engine.cache.DiskLruCacheWrapper.getDiskCache(DiskLruCacheWrapper.java:78)\n\tat com.bumptech.glide.load.engine.cache.DiskLruCacheWrapper.get(DiskLruCacheWrapper.java:94)\n\tat com.bumptech.glide.load.engine.ResourceCacheGenerator.startNext(ResourceCacheGenerator.java:85)\n\tat com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:310)\n\tat com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:276)\n\tat com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:234)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)\n\tat java.lang.Thread.run(Thread.java:764)\n\tat com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:431)\n\tCaused by: java.lang.ClassNotFoundException: Didn't find class "com.bumptech.glide.disklrucache.DiskLruCache" on path: DexPathList[[zip file "/data/app/com.example.zhcs3-A2z3Qc9HOjU_eax7HVVaUg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.zhcs3-A2z3Qc9HOjU_eax7HVVaUg==/lib/x86, /system/lib, /vendor/lib]]\n\tat dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:379)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:312)\n\tat com.bumptech.glide.load.engine.cache.DiskLruCacheWrapper.getDiskCache(DiskLruCacheWrapper.java:78)\t\n\tat com.bumptech.glide.load.engine.cache.DiskLruCacheWrapper.get(DiskLruCacheWrapper.java:94)\t\n\tat com.bumptech.glide.load.engine.ResourceCacheGenerator.startNext(ResourceCacheGenerator.java:85)\t\n\tat com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:310)\t\n\tat com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:276)\t\n\tat com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:234)\t\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)\t\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)\t\n\tat java.lang.Thread.run(Thread.java:764)\t\n\tat com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:431)\t\n这个错误是由于未找到Glide库中的一个类引起的。具体来说,无法找到com.bumptech.glide.disklrucache.DiskLruCache类。这可能是由于以下原因之一导致的:\n\n1. Glide库未正确添加到项目中。请确保已正确导入Glide库,并在构建配置中正确配置依赖项。\n\n2. 版本冲突。如果项目中使用的其他库与Glide库存在版本冲突,可能会导致无法找到所需类。请确保所有库的版本兼容,并解决任何版本冲突。\n\n3. 混淆问题。如果项目使用了混淆,可能会将Glide库中的类混淆掉。请确保在混淆规则中正确配置Glide库,以防止混淆所需的类。\n\n请检查以上可能的原因,并尝试解决问题。如果问题仍然存在,请提供更多关于项目配置和代码使用Glide的信息,以便更好地帮助您解决问题。

Glide 错误: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/disklrucache/DiskLruCache; - 解决方法

原文地址: https://www.cveoy.top/t/topic/pUVr 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录