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

Crashes when used with Glide version 4x #51

Open
ParagKadam101 opened this issue Nov 5, 2017 · 10 comments
Open

Crashes when used with Glide version 4x #51

ParagKadam101 opened this issue Nov 5, 2017 · 10 comments

Comments

@ParagKadam101
Copy link

I am using Glide in my project, if I use version 3x then it works fine but if I use version 4x then the app gets crashed as soon as the image selector activity is launched.
This is the line which shows the error:-
Glide.with(this.context).load(((Album)this.arrayList.get(position)).cover).placeholder(drawable.image_placeholder).centerCrop().into(viewHolder.imageView);

java.lang.NoSuchMethodError: No virtual method load(Ljava/lang/String;)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.parag.sopr-2/base.apk:classes58.dex)
                                                                          at com.darsh.multipleimageselect.adapters.CustomAlbumSelectAdapter.getView(CustomAlbumSelectAdapter.java:44)
                                                                          at android.widget.AbsListView.obtainView(AbsListView.java:2367)
                                                                          at android.widget.GridView.onMeasure(GridView.java:1065)
                                                                          at android.view.View.measure(View.java:19758)
                                                                          at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
                                                                          at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
                                                                          at android.view.View.measure(View.java:19758)
                                                                          at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6124)
                                                                          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:19758)
                                                                          at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6124)
                                                                          at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
                                                                          at android.view.View.measure(View.java:19758)
                                                                          at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6124)
                                                                          at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
                                                                          at android.view.View.measure(View.java:19758)
                                                                          at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6124)
                                                                          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:19758)
                                                                          at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6124)
                                                                          at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
                                                                          at com.android.internal.policy.DecorView.onMeasure(DecorView.java:687)
                                                                          at android.view.View.measure(View.java:19758)
                                                                          at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2271)
                                                                          at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1358)
                                                                          at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1607)
                                                                          at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
                                                                          at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6325)
                                                                          at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
                                                                          at android.view.Choreographer.doCallbacks(Choreographer.java:683)
                                                                          at android.view.Choreographer.doFrame(Choreographer.java:619)
                                                                          at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
                                                                          at android.os.Handler.handleCallback(Handler.java:751)
                                                                          at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                          at android.os.Looper.loop(Looper.java:154)
                                                                          at android.app.ActivityThread.main(ActivityThread.java:6111)
                                                                          at java.lang.reflect.Method.invoke(Native Method)
                                                                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

@pingothedoer
Copy link

Did you find any solution? I am facing the same issue.

@surveshoeb
Copy link

Same issue

@surveshoeb
Copy link

Decarde your glide version in gradle to compile 'com.github.bumptech.glide:glide:3.6.0'

@weilong88
Copy link

Is there a way to update this library to v4 ?

@yusufcaglar-zz
Copy link

I tried exclude glide from dependency but it didn't work either. I am using surveshoeb's solution at the moment

@yusufcaglar-zz
Copy link

The only solution i found is downloading the source code and implementing it as module in android studio . Then in gradle use latest version of glide.

@surveshoeb
Copy link

surveshoeb commented Jun 9, 2018

Yeap you can also do that

@shreenivas-ch
Copy link

shreenivas-ch commented Oct 4, 2018

For now I had only one solution, replaced this library with other library which using latest glide version, as I need to use latest glide in my project as well as so other dependency library

@wishihab
Copy link

For now I had only one solution, replaced this library with other library which using latest glide version, as I need to use latest glide in my project as well as so other dependency library

Any suggest of other library?

@sjd753
Copy link

sjd753 commented Jun 25, 2021

forked and rescued the library. Now it's compatible with api 29 and most importantly glide is updated to v4.12.0
implementation 'com.github.sjd753:MultipleImageSelect:1.0.1'

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

8 participants