Android Studio提示No virtual method asBitmap()Lcom/bumptech/glide/RequestBuilder

1 问题

android studio导入别人项目的module,运行点击app,程序奔溃,错误日志如下

    Process: com.example.chenyu, PID: 6302
    java.lang.NoSuchMethodError: No virtual method asBitmap()Lcom/bumptech/glide/RequestBuilder; in class Lcom/bumptech/glide/RequestManager; or its super classes (declaration of 'com.bumptech.glide.RequestManager' appears in /data/app/com.example.chenyu-S_lF33LcJBkLdYjWi4l9sg==/base.apk!classes2.dex)
        at com.zhihu.matisse.engine.impl.GlideEngine.loadThumbnail(GlideEngine.java:37)
        at com.zhihu.matisse.internal.ui.widget.MediaGrid.setImage(MediaGrid.java:117)
        at com.zhihu.matisse.internal.ui.widget.MediaGrid.bindMedia(MediaGrid.java:84)

2 原因

app和module里面的glide版本不一致导致的

3 解决办法

让app里面的glide版本和module里面的版本保持一致就可以了。

(0)

相关推荐