xushihai / MediaPicker

高仿微信选择图片和视频的控件。
50 stars 14 forks source link

glide 3.7.0加载大图缩放那里奔溃(GalleryAdapter.java:96) #18

Open hockgod520 opened 4 years ago

hockgod520 commented 4 years ago

2020-01-03 14:46:04.221 6027-6027/com.pengpeng.avocado E/AndroidRuntime: FATAL EXCEPTION: main Process: com.pengpeng.avocado, PID: 6027 java.lang.NoSuchMethodError: No virtual method load(Ljava/lang/String;)Lcom/bumptech/glide/DrawableTypeRequest; in class Lp9; or its super classes (declaration of 'p9' appears in /data/app/com.pengpeng.avocado-7j-UT1YdtzQZSlIchglpIg==/base.apk!classes2.dex) at com.hai.mediapicker.adapter.GalleryAdapter.a(GalleryAdapter.java:96) at com.hai.mediapicker.adapter.GalleryAdapter.onBindViewHolder(GalleryAdapter.java:31) at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6781) at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6823) at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5752) at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6019) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5858) at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5854) at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2230) at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:557) at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1517) at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:612) at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:171) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3924) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3641) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4194) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1083) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1842) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1686) at android.widget.LinearLayout.onLayout(LinearLayout.java:1595) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1842) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1686) at android.widget.LinearLayout.onLayout(LinearLayout.java:1595) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:325) at android.widget.FrameLayout.onLayout(FrameLayout.java:261) at com.android.internal.policy.DecorView.onLayout(DecorView.java:902) at android.view.View.layout(View.java:20948) at android.view.ViewGroup.layout(ViewGroup.java:6279) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3037) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2545) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1636) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7946) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1092) at android.view.Choreographer.doCallbacks(Choreographer.java:893) at android.view.Choreographer.doFrame(Choreographer.java:812) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1078) 2020-01-03 14:46:04.221 6027-6027/com.pengpeng.avocado E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:907) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:216) at android.app.ActivityThread.main(ActivityThread.java:7625) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

hockgod520 commented 4 years ago

这个还没找到解决方法

hockgod520 commented 4 years ago

这个还没找到解决方法

是Glide版本问题,EaseUI库Glide版本需要和主项目里面Glide版本一致,修改完成以后就可以了