Cannot resolve method 'with(com.xxx.yyy.fragment.MessageListFragment)'

31 views
Skip to first unread message

Mark Anderson

unread,
Jul 21, 2023, 1:14:35 AM7/21/23
to Glide
I am running Glide 3.7.0 as I have to and now see this error. 

Cannot resolve method 'with(com.xxx.yyy.fragment.MessageListFragment)

Glide
.with(MessageListFragment.this)   Request Manager
.load(favIconUrl)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {
fragment.contactsPictureLoader.setContactPicture(holder.contactBadge, counterpartyAddress);
return false;
}


Would appreciate any help.

Thanks


Róbert Papp (TWiStErRob)

unread,
Jul 21, 2023, 3:27:32 AM7/21/23
to Glide
My guess is: 3.x still uses support libraries (non-androidx), so you need to depend on support-v4, or androidx-fragment and enable Jetifier so Glide code gets rewritten to AndroidX.

If this doesn't help, please read the error logs fully and paste the root cause and error source as well. Your dependencies, etc. Essentially the whole issue template: https://github.com/bumptech/glide/blob/master/ISSUE_TEMPLATE.md

Reply all
Reply to author
Forward
0 new messages