Glide加载网页图片程序报错,不知道怎么解决,求帮

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.takeoutordering, PID: 22565
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider;

img

第一步:把下面这一行配置删掉

implemetation files('libs\\'glide-4.10.0.arr')

第二步:把libs文件夹下的glide-4.10.0.arr文件删除。
第三步:build.gradle 添加下列配置

dependencies {
    compile 'com.github.bumptech.glide:glide:4.11.0'
    // Skip this if you don't want to use integration libraries or configure Glide.
    annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}

第四步:同步工程,重新编译

首先确认一下,项目build.gradle文件中是否已引入以下类似配置

compile 'com.github.bumptech.glide:glide:3.7.0'

如果已经引入了,还是不好用。可以试试下面的配置:

dependencies {
    implementation ("com.github.bumptech.glide:glide:4.11.0@aar") {
        transitive = true
    }
}