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);
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:
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.
Most helpful comment
There's no
GlideDrawableany more, just change the types toDrawable.