glide
glide copied to clipboard
Getting this Warming.
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
Using these:
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
I have the same issue. @ahmadbajwa12315 did you find any solution?
Am Using implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
The placeholders and images are not loaded and getting that warn On Android 7
@elkasvirElka yeah can you email me at [email protected]
@ahmadbajwa12315 Could you show the solution here, please?
Am Using implementation 'com.github.bumptech.glide:glide:4.12.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
The placeholders and images are not loaded and getting that warn On Android 7
getting same issue using this version
I also encountering this problem. I'm using:
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation "com.github.bumptech.glide:okhttp3-integration:4.12.0"
@elkasvirElka yeah can you email me at [email protected]
Could you show the solution here, please?我也需要。谢谢
Same issue also latest version
Getting the same issue using the last version:
On Gradle
repositories {
google()
mavenCentral()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.13.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
}
On ProGuard
-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();
}
# for DexGuard only
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
I tried many solutions following the documentation (is deprecated too), and no matter if we use versions: 4.11.0, 4.12.0 or 4.13.0, the issue stills happen
[Here] the issue was closed, so @elkasvirElka and @ahmadbajwa12315 can you share the solution here, please?

Has anyone solved this issue?
I found a way to solve the issue in link below: http://bumptech.github.io/glide/doc/generatedapi.html#availability
The last version in app gradle:
plugins {
id 'kotlin-kapt'
}
//glide
def glide_version = "4.13.0"
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
In project gradle
repositories {
mavenCentral()
}
First step: Create file GlideAppModue.kt, like below: You shouldn't create file with name GlideApp.kt, because it maybe duplicate with GlideApp class when rebuild project.
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule
@GlideModule
class GlideAppModule: AppGlideModule()
Second step: Rebuild project
For the most part Android Studio just works with annotation processors and the generated API. However, you may need to rebuild the project the first time you add your AppGlideModule or after some types of changes. If the API won’t import or seems out of date, you can re-build by:
1. Open the Build menu
2. Click Rebuild Project.
Then, you can use the generated API like this:
@JvmStatic
@BindingAdapter("loadImage")
fun bindLoadImage(view: ImageView, url: String?) {
GlideApp.with(view.context)
.placeholder(R.drawable.placeholder)
.load(url)
.fitCenter()
.into(view)
}
Hope it help you ❤❤❤❤
Make sure if you are using kotlin, use -
kapt 'com.github.bumptech.glide:compiler:4.10.0'
rather than-
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
Hello All. I still experienced this error on
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
Is there a solution? Can you please share it in here? I'd really appreciate it ^^
@dwardy0101 are you using Kotlin?
If so replace annotationProcessor with kapt and try it again
@davidmcraejr @dwardy0101 @all I created video about it, please check it, hope it help you. ❤❤❤❤ https://youtu.be/zTygdC-QCz8
@davidmcraejr no sir. native android (java)
@LNMCode thanks! It's working. I don't see any errors from Glide after implementing it.
That fixes.
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule
@GlideModule
class GlideModule: AppGlideModule() {
}