FilePicker icon indicating copy to clipboard operation
FilePicker copied to clipboard

No virtual method optionalCenterCrop()

Open mohsinabid opened this issue 5 years ago • 7 comments

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 avatar Jul 23 '20 05:07 mohsinabid

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

mohsinabid avatar Jul 23 '20 05:07 mohsinabid

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

jaiselrahman avatar Jul 23 '20 05:07 jaiselrahman

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 avatar Jul 23 '20 05:07 mohsinabid

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

mohsinabid avatar Jul 23 '20 06:07 mohsinabid

Try using same version for annotation processor.

jaiselrahman avatar Jul 23 '20 06:07 jaiselrahman

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" }

mohsinabid avatar Jul 23 '20 06:07 mohsinabid

Yes

jaiselrahman avatar Jul 23 '20 06:07 jaiselrahman