Open wangyangke opened 7 years ago
用的最新版me.iwf.photopicker:PhotoPicker:0.9.10@aar,跳转的时候崩溃,崩溃信息如下: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xinxindai.eloanmobile/me.iwf.photopicker.PhotoPickerActivity}: java.lang.RuntimeException: Expected instanceof GlideModule, but found: xxd.base.utils.Image.CustomGlideModule@34f72cf at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2613) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1517) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:227) at android.app.ActivityThread.main(ActivityThread.java:6102) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:961) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:822) Caused by: java.lang.RuntimeException: Expected instanceof GlideModule, but found: xxd.base.utils.Image.CustomGlideModule@34f72cf at com.bumptech.glide.module.ManifestParser.parseModule(ManifestParser.java:81) at com.bumptech.glide.module.ManifestParser.parse(ManifestParser.java:43) at com.bumptech.glide.Glide.initializeGlide(Glide.java:193) at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:172) at com.bumptech.glide.Glide.get(Glide.java:156) at com.bumptech.glide.Glide.getRetriever(Glide.java:535) at com.bumptech.glide.Glide.with(Glide.java:607) at me.iwf.photopicker.fragment.PhotoPickerFragment.onCreate(PhotoPickerFragment.java:95) at android.support.v4.app.Fragment.performCreate(Fragment.java:2339) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1377) at android.support.v4.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1109) at android.support.v4.app.FragmentTransition.calculateFragments(FragmentTransition.java:996) at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:99) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2364) at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2322) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2229) at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:781) at me.iwf.photopicker.PhotoPickerActivity.onCreate(PhotoPickerActivity.java:83) at android.app.Activity.performCreate(Activity.java:6280) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1131) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2566) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1517) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:227) at android.app.ActivityThread.main(ActivityThread.java:6102) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:961) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:822)
Caused by: java.lang.RuntimeException: Expected instanceof GlideModule, but found:
How to deal with this problem
java.lang.NoSuchMethodError: No static method clear(Landroid/view/View;)V in class Lcom/bumptech/glide/Glide; or its super classes (declaration of 'com.bumptech.glide.Glide' appears in /data/app/com.xinxindai.eloanmobile-1/split_lib_dependencies_apk.apk:classes28.dex) at me.iwf.photopicker.adapter.PhotoGridAdapter.onViewRecycled(PhotoGridAdapter.java:221) at me.iwf.photopicker.adapter.PhotoGridAdapter.onViewRecycled(PhotoGridAdapter.java:27) at android.support.v7.widget.RecyclerView$Recycler.dispatchViewRecycled(RecyclerView.java:6190) at android.support.v7.widget.RecyclerView$Recycler.addViewHolderToRecycledViewPool(RecyclerView.java:5961) at android.support.v7.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:5922) at android.support.v7.widget.RecyclerView$LayoutManager.scrapOrRecycleView(RecyclerView.java:8591) at android.support.v7.widget.RecyclerView$LayoutManager.detachAndScrapAttachedViews(RecyclerView.java:8576) at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:666) at android.support.v7.widget.StaggeredGridLayoutManager.onLayoutChildren(StaggeredGridLayoutManager.java:604) at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3693) at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3410) at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3962) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:2001) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1844) at android.widget.LinearLayout.onLayout(LinearLayout.java:1753) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:396) at android.widget.FrameLayout.onLayout(FrameLayout.java:333) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:2001) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1844) at android.widget.LinearLayout.onLayout(LinearLayout.java:1753) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:396) at android.widget.FrameLayout.onLayout(FrameLayout.java:333) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:2001) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1844) at android.widget.LinearLayout.onLayout(LinearLayout.java:1753) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:396) at android.widget.FrameLayout.onLayout(FrameLayout.java:333) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.LinearLayout.setChildFrame(LinearLayout.java:2001) at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1844) at android.widget.LinearLayout.onLayout(LinearLayout.java:1753) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.widget.FrameLayout.layoutChildren(FrameLayout.java:396) at android.widget.FrameLayout.onLayout(FrameLayout.java:333) at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2777) at android.view.View.layout(View.java:17051) at android.view.ViewGroup.layout(ViewGroup.java:5600) at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2648) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2328) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1369) at android.vi