1. 程式人生 > >java.lang.NoSuchMethodError: No virtual method into(Landroid/widget/ImageView;)

java.lang.NoSuchMethodError: No virtual method into(Landroid/widget/ImageView;)

 java.lang.NoSuchMethodError: No virtual method into(Landroid/widget/ImageView;)Lcom/bumptech/glide/request/target/Target; in class Lcom/bumptech/glide/RequestBuilder; or its super classes (declaration of 'com.bumptech.glide.RequestBuilder' appears in /data/app/net.yubay.cloudteaching-2/base.apk:classes18.dex)
                                                                             at cloudteaching.imageselector.adapter.ImageListAdapter.onBindViewHolder(ImageListAdapter.java:103)
                                                                             at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6508)
                                                                             at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6541)
                                                                             at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5484)
                                                                             at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5750)
                                                                             at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5589)
                                                                             at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5585)
                                                                             at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2231)
                                                                             at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)
                                                                             at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1518)
                                                                             at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:610)
                                                                             at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
                                                                             at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3719)
                                                                             at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3436)
                                                                             at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3988)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                                             at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                                             at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
                                                                             at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
                                                                             at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
                                                                             at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
                                                                             at com.android.internal.policy.impl.PhoneWindow$DecorView.onLayout(PhoneWindow.java:3594)
                                                                             at android.view.View.layout(View.java:15729)
                                                                             at android.view.ViewGroup.layout(ViewGroup.java:5051)
                                                                             at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2344)
                                                                             at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2097)
                                                                             at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1291)
                                                                             at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6481)
                                                                             at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
                                                                             at android.view.Choreographer.doCallbacks(Choreographer.java:580)
                                                                             at android.view.Choreographer.doFrame(Choreographer.java:550)
                                                                             at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
不同Module和主工程中的glide包匯入多個版本導致的莫名其妙的錯誤!