Glide: Not able to import GlideDrawable (Glide.4.0.0)

Created on 3 Jul 2017  路  6Comments  路  Source: bumptech/glide

Following imports are failing when I upgraded Glide from 'com.github.bumptech.glide:glide:3.7.0' to 'com.github.bumptech.glide:glide:4.0.0-RC1'.

import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.target.Target;



   Glide.with(context)
                .load(itemImageView.getImageurl())
                .listener(new RequestListener<String, GlideDrawable>() {
                    @Override
                    public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {
                        return false;
                    }

                    @Override
                    public boolean onResourceReady(GlideDrawable resource, String model,
                                                   Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {
                        animatePhoto(holder);
                        return false;
                    }
                })
                .into(holder.ivPhoto);

question stale v4

Most helpful comment

There's no GlideDrawable any more, just change the types to Drawable.

All 6 comments

There's no GlideDrawable any more, just change the types to Drawable.

Thanks. I replaced with Drawable. It worked. But I am getting bitmapTransform not found in below code

Glide.with(context).load(R.drawable.meera)
.bitmapTransform(new CropCircleTransformation(context))
.into(holder.ivUserAvatar);

For applying transformations, see: http://bumptech.github.io/glide/doc/transformations.html#applying-transformations

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

I Am faced with this major issues after migrating my project to androidx.

error: cannot find symbol
import com.bumptech.glide.load.resource.drawable.Drawable;
^
symbol: class Drawable

I have taken all the possible first steps to fix the issue like downgrading my google services from 4.3.3 to 4.1.0 and still that won't resolve my issue. have already Interchanged GlideDrawable to Drawable as seen in the error, but still have issues. What could be the possible fix to this?

Facts:

  1. API: implementation 'com.github.bumptech.glide:glide:4.11.0'
  2. buildscript {
repositories {
    mavenCentral()
    jcenter()
    google()

}
dependencies {
    classpath 'com.android.tools.build:gradle:3.6.3'
    classpath 'com.google.gms:google-services:4.1.0'
}

}

@Newtoxton Any updates. I am facing the same.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kooeasy picture kooeasy  路  3Comments

piedpiperlol picture piedpiperlol  路  3Comments

mttmllns picture mttmllns  路  3Comments

sant527 picture sant527  路  3Comments

Morteza-Rastgoo picture Morteza-Rastgoo  路  3Comments