I was using Glide to display image from firebase storage but I am getting this error:
W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
I have tried to find the solutions from Glide Failed to find GeneratedAppGlideModule and Android Glide "Cannot Resolve Method 'with' in GlideApp" but both of them did not work.
Below are my sample code in recycler view adapter:
Glide.with(context).load(imageurl).into(viewHolder.getImageview());
and I am using the latest version of Glide:
implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
Clean, rebuild project and invalidate/restart did not work for me. I appreciate if anyone could suggest solution to solve this issue. Thank you.
My codes in build.gradle (project):
allprojects {
repositories {
google()
mavenCentral()
}
}
My codes in build.gradle (module):
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
My codes in proguard-rules.pro:
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep class * extends com.bumptech.glide.module.AppGlideModule {
<init>(...);
}
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
-keep class
com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
*** rewind();
}