Glide加载网页图片程序闪退,这是报错日志,求教

 

Process: com.example.button, PID: 21229
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider;
        at com.bumptech.glide.Glide.<init>(Glide.java:386)
        at com.bumptech.glide.GlideBuilder.build(GlideBuilder.java:564)
        at com.bumptech.glide.Glide.initializeGlide(Glide.java:290)
        at com.bumptech.glide.Glide.initializeGlide(Glide.java:242)
        at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:201)
        at com.bumptech.glide.Glide.get(Glide.java:182)
        at com.bumptech.glide.Glide.getRetriever(Glide.java:749)
        at com.bumptech.glide.Glide.with(Glide.java:801)
        at com.example.button.ImageViewActivity.onCreate(ImageViewActivity.java:16)
        at android.app.Activity.performCreate(Activity.java:7802)
        at android.app.Activity.performCreate(Activity.java:7791)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7356)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.bumptech.glide.gifdecoder.GifDecoder$BitmapProvider" on path: DexPathList[[zip file "/data/app/com.example.button-naQ3ec-qhWEEcVpQUHVEbw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.button-naQ3ec-qhWEEcVpQUHVEbw==/lib/x86, /system/lib, /system/product/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.bumptech.glide.Glide.<init>(Glide.java:386) 
        at com.bumptech.glide.GlideBuilder.build(GlideBuilder.java:564) 
        at com.bumptech.glide.Glide.initializeGlide(Glide.java:290) 
        at com.bumptech.glide.Glide.initializeGlide(Glide.java:242) 
        at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:201) 
        at com.bumptech.glide.Glide.get(Glide.java:182) 
        at com.bumptech.glide.Glide.getRetriever(Glide.java:749) 
        at com.bumptech.glide.Glide.with(Glide.java:801) 
        at com.example.button.ImageViewActivity.onCreate(ImageViewActivity.java:16) 
        at android.app.Activity.performCreate(Activity.java:7802) 
        at android.app.Activity.performCreate(Activity.java:7791) 
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1299) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3245) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3409) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016) 
        at android.os.Handler.dispatchMessage(Handler.java:107) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.app.ActivityThread.main(ActivityThread.java:7356) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 

 

查看全部
qq_40624536
qq_40624536
2021/01/13 23:10
  • android-studio
  • android
  • 点赞
  • 收藏
  • 回答
    私信

1个回复