Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: package com.bumptech.glide.request.animation does not exist

I added package in app gradle following package:

implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:glide:4.8.0'

But while run getting below error:

error: package com.bumptech.glide.request.animation does not exist

Anyone faced like this?

like image 867
siva.picky Avatar asked Dec 18 '22 21:12

siva.picky


1 Answers

GladeAnimation has been replaced by Transition, so now instead of

onResourceReady(GlideDrawable drawable, GlideAnimation<? super GlideDrawable> anim) 

you should use

onResourceReady(Drawable drawable, Transition<? super Drawable> transition);

You should check all the different migration changes from the official site.

Cheers!

like image 111
PayToPwn Avatar answered Apr 27 '23 01:04

PayToPwn