jaiselrahman / FilePicker

FilePicker library for Android
Apache License 2.0
238 stars 70 forks source link

No virtual method optionalCenterCrop() #72

Open mohsinabid opened 4 years ago

mohsinabid commented 4 years ago

Fatal Exception: java.lang.NoSuchMethodError: No virtual method optionalCenterCrop()Lcom/bumptech/glide/request/BaseRequestOptions; in class Lcom/bumptech/glide/f/e; or its super classes (declaration of 'com.bumptech.glide.f.e' appears in base.apk) at com.jaiselrahman.filepicker.adapter.FileGalleryAdapter.(FileGalleryAdapter.java:77) at com.jaiselrahman.filepicker.activity.FilePickerActivity.onCreate(FilePickerActivity.java:123)

mohsinabid commented 4 years ago

@jaiselrahman Please try to resolve this issue ASAP because its really hurting my app.

jaiselrahman commented 4 years ago

Which version of glide you are using? Please try changing it to 4.10.0 or up.

mohsinabid commented 4 years ago

implementation('com.github.jaiselrahman:FilePicker:1.3.2') { exclude group: "com.github.bumptech.glide" exclude group: "com.android.support:recyclerview-v7" }

if I use glide in my app or not but still i get same error

implementation 'com.github.bumptech.glide:glide:4.10.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
mohsinabid commented 4 years ago

FileGalleryAdapter.java line 77 com.jaiselrahman.filepicker.adapter.FileGalleryAdapter. This issue has 6295 crashes affecting 2972 users Last 7 days 17 Jul – 23 Jul

jaiselrahman commented 4 years ago

Try using same version for annotation processor.

mohsinabid commented 4 years ago

Should I remove exclude group as well ?

implementation('com.github.jaiselrahman:FilePicker:1.3.2') { exclude group: "com.github.bumptech.glide" exclude group: "com.android.support:recyclerview-v7" }

jaiselrahman commented 4 years ago

Yes