接入 Matisse ,运行一直报错
Process: com.lianyucn.facerecognition, PID: 10461
java.lang.NoSuchMethodError: No virtual method load(Landroid/net/Uri;)Lcom/bumptech/glide/DrawableTypeRequest; in class Lcom/bumptech/glide/RequestManager; or its super classes (declaration of 'com.bumptech.glide.RequestManager' appears in /data/app/com.lianyucn.facerecognition-1/base.apk)
at com.zhihu.matisse.engine.impl.GlideEngine.loadThumbnail(GlideEngine.java:36)
at com.zhihu.matisse.internal.ui.widget.MediaGrid.setImage(MediaGrid.java:117)
at com.zhihu.matisse.internal.ui.widget.MediaGrid.bindMedia(MediaGrid.java:84)
是Glide版本问题,EaseUI库Glide版本需要和主项目里面Glide版本一致,修改完成以后就可以了
implementation ‘com.zhihu.android:matisse:0.5.2’
改成
implementation ‘com.zhihu.android:matisse:0.5.3-beta3’