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

ClassCastException #75

Closed
Rainer-Lang opened this issue Sep 29, 2017 · 7 comments
Closed

ClassCastException #75

Rainer-Lang opened this issue Sep 29, 2017 · 7 comments

Comments

@Rainer-Lang
Copy link
Contributor

@Rainer-Lang Rainer-Lang commented Sep 29, 2017

java.lang.ClassCastException: MY_PACKAGE.GlideRequests cannot be cast to com.esafirm.imagepicker.features.imageloader.GlideRequests
at com.esafirm.imagepicker.features.imageloader.GlideApp.with(GlideApp.java:73)
at com.esafirm.imagepicker.features.imageloader.DefaultImageLoader.loadImage(DefaultImageLoader.java:12)
at com.esafirm.imagepicker.adapter.FolderPickerAdapter.onBindViewHolder(FolderPickerAdapter.java:40)
at com.esafirm.imagepicker.adapter.FolderPickerAdapter.onBindViewHolder(FolderPickerAdapter.java:19)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6482)
@Rainer-Lang
Copy link
Contributor Author

@Rainer-Lang Rainer-Lang commented Sep 29, 2017

Maybe this is related: bumptech/glide#2393

@esafirm
Copy link
Owner

@esafirm esafirm commented Oct 1, 2017

@Rainer-Lang will check on it. Hacktoberfest materila? 😄

@bvklimov
Copy link

@bvklimov bvklimov commented Oct 12, 2017

Hi! Facing with the same issue, cannot register http client in GlideModule for my purposes, because of image-picker extends AppGlideModule, and not LibraryGlideModule, I think.

@esafirm
Copy link
Owner

@esafirm esafirm commented Nov 13, 2017

@bvklimov so i think changing the library glide module name will solve the issue right? Will look into it in the weekend!

@cheetahdeliverys
Copy link

@cheetahdeliverys cheetahdeliverys commented Nov 21, 2017

I have the same problem, I think it is because of new version of glide added to my project, some of its methods and syntax to use them become different, please solve it thanks a lot

@esafirm
Copy link
Owner

@esafirm esafirm commented Nov 21, 2017

Can you please try this version -> https://github.com/esafirm/android-image-picker/releases/tag/1.10.0-beta1

BTW you should consider using implementation rather than compile if you still using Glide v3 in your project

@esafirm
Copy link
Owner

@esafirm esafirm commented Feb 14, 2018

Closing this issue due inactivity. Please don't hesitate to re-open

@esafirm esafirm closed this Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants