esafirm / android-image-picker

Image Picker for Android 🤖
MIT License
1.11k stars 327 forks source link

ClassCastException #75

Closed Rainer-Lang closed 6 years ago

Rainer-Lang commented 7 years ago
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 commented 7 years ago

Maybe this is related: https://github.com/bumptech/glide/issues/2393

esafirm commented 7 years ago

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

bvklimov commented 7 years ago

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 commented 6 years ago

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

cheetahdeliverys commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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