Glide加载图片不显示,并报错

LYP287578121 2017-11-08 06:34:33
使用compile 'com.github.bumptech.glide:glide:3.7.0'
加载图片,无法显示,报错log
11-08 18:20:46.195 23548-24568/com.smalltime.glidedemo E/PriorityExecutor: Request threw uncaught throwable
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Failed resolution of: Lio/bugtags/agent/instrumentation/HttpInstrumentation;
at java.util.concurrent.FutureTask.report(FutureTask.java:94)
at java.util.concurrent.FutureTask.get(FutureTask.java:164)
at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor.afterExecute(FifoPriorityThreadPoolExecutor.java:96)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1141)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lio/bugtags/agent/instrumentation/HttpInstrumentation;
at com.bumptech.glide.load.data.HttpUrlFetcher$DefaultHttpUrlConnectionFactory.build(HttpUrlFetcher.java:141)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:62)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:44)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:20)
at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:70)
at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:53)
at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:170)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128)
at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122)
at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101)
at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "io.bugtags.agent.instrumentation.HttpInstrumentation" on path: DexPathList[[zip file "/data/app/com.smalltime.glidedemo-1/base.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.smalltime.glidedemo-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.smalltime.glidedemo-1/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.bumptech.glide.load.data.HttpUrlFetcher$DefaultHttpUrlConnectionFactory.build(HttpUrlFetcher.java:141) 
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:62) 
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:44) 
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:20) 
at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:70) 
at com.bumptech.glide.load.model.ImageVideoModelLoader$ImageVideoFetcher.loadData(ImageVideoModelLoader.java:53) 
at com.bumptech.glide.load.engine.DecodeJob.decodeSource(DecodeJob.java:170) 
at com.bumptech.glide.load.engine.DecodeJob.decodeFromSource(DecodeJob.java:128) 
at com.bumptech.glide.load.engine.EngineRunnable.decodeFromSource(EngineRunnable.java:122) 
at com.bumptech.glide.load.engine.EngineRunnable.decode(EngineRunnable.java:101) 
at com.bumptech.glide.load.engine.EngineRunnable.run(EngineRunnable.java:58) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 
at com.bumptech.glide.load.engine.executor.FifoPriorityThreadPoolExecutor$DefaultThreadFactory$1.run(FifoPriorityThreadPoolExecutor.java:118) 

网络权限设置过了,Picasso可以加载成功,Glide不可以。请问是什么问题
...全文
823 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hello_1s 2017-11-27
  • 打赏
  • 举报
回复
换一个gradle的版本号

80,360

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧