Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NoSuchMethodError,我用的glide4.0.0,需要升级么? #131

Open
ITzhangyan opened this issue Apr 16, 2018 · 4 comments
Open

.NoSuchMethodError,我用的glide4.0.0,需要升级么? #131

ITzhangyan opened this issue Apr 16, 2018 · 4 comments

Comments

@ITzhangyan
Copy link

java.lang.NoSuchMethodError: No virtual method load(Ljava/lang/String;)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.EdLab-1/base.apk)
at cn.bingoogolapple.photopicker.imageloader.BGAGlideImageLoader.display(BGAGlideImageLoader.java:47)
at cn.bingoogolapple.photopicker.imageloader.BGAImage.display(BGAImage.java:76)
at cn.bingoogolapple.photopicker.imageloader.BGAImage.display(BGAImage.java:83)
at cn.bingoogolapple.photopicker.imageloader.BGAImage.display(BGAImage.java:87)
at cn.bingoogolapple.photopicker.imageloader.BGAImage.display(BGAImage.java:91)
at cn.bingoogolapple.photopicker.widget.BGASortableNinePhotoLayout$PhotoAdapter.fillData(BGASortableNinePhotoLayout.java:466)
at cn.bingoogolapple.photopicker.widget.BGASortableNinePhotoLayout$PhotoAdapter.fillData(BGASortableNinePhotoLayout.java:411)
at cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter.onBindViewHolder(BGARecyclerViewAdapter.java:102)
at cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter.onBindViewHolder(BGARecyclerViewAdapter.java:32)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6356)
at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6389)
at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5335)
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5598)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5440)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5436)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2224)
at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1511)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:595)
at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3583)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3312)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)
at android.view.View.layout(View.java:17658)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:17658)
at android.view.ViewGroup.layout(ViewGroup.java:5615)
at android.support.v7.widget.RecyclerView$LayoutManager.layoutDecoratedWithMargins(RecyclerView.java:8839)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1609)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1511)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:595)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3583)
at android.support.v7.widget.RecyclerView.onMeasure(RecyclerView.java:3025)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
04-16 17:24:58.980 29809-29809/com.EdLab E/AndroidRuntime: at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1464)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:758)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:640)
at android.view.View.measure(View.java:19878)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6132)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
at com.android.internal.policy.DecorView.onMeasure(DecorView.java:855)
at android.view.View.measure(View.java:19878)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2543)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1618)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1882)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1494)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6953)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:883)
at android.view.Choreographer.doCallbacks(Choreographer.java:689)
at android.view.Choreographer.doFrame(Choreographer.java:624)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:869)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:159)
at android.app.ActivityThread.main(ActivityThread.java:6326)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1096)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)

@5en
Copy link

5en commented May 23, 2018

i also get this touble

@5en
Copy link

5en commented May 23, 2018

i solve it use glide compile 'com.github.bumptech.glide:glide:4.7.1'

@rex26
Copy link

rex26 commented Mar 11, 2019

i solve it use glide compile 'com.github.bumptech.glide:glide:4.7.1'

the aar and docs is dismatch,it took me a half day ..........................................

@hudawei996
Copy link

解决方法还是和兼容glide3一样的兼容Glide3,添加一个public class BGAGlideImageLoader4 extends BGAImageLoader{...}即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants