glide icon indicating copy to clipboard operation
glide copied to clipboard

Getting this Warming.

Open ahmadbajwa12315 opened this issue 4 years ago • 21 comments

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

ahmadbajwa12315 avatar Jan 19 '21 12:01 ahmadbajwa12315

Using these:

implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

ahmadbajwa12315 avatar Jan 19 '21 12:01 ahmadbajwa12315

I have the same issue. @ahmadbajwa12315 did you find any solution?

elkasvirElka avatar Mar 14 '21 01:03 elkasvirElka

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 

Hussienfahmy avatar Apr 26 '21 21:04 Hussienfahmy

@elkasvirElka yeah can you email me at [email protected]

ahmadbajwa12315 avatar Apr 27 '21 09:04 ahmadbajwa12315

@ahmadbajwa12315 Could you show the solution here, please?

elkasvirElka avatar Jun 12 '21 22:06 elkasvirElka

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

Miteshmakwana73 avatar Jun 14 '21 11:06 Miteshmakwana73

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"

rfoa avatar Nov 01 '21 19:11 rfoa

@elkasvirElka yeah can you email me at [email protected]

Could you show the solution here, please?我也需要。谢谢

BananaHuo avatar Jan 14 '22 09:01 BananaHuo

Same issue also latest version

kalismeras61 avatar Feb 09 '22 10:02 kalismeras61

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?

DennisMostajo avatar Apr 12 '22 21:04 DennisMostajo

image

iDeMonnnnnn avatar Apr 18 '22 10:04 iDeMonnnnnn

Has anyone solved this issue?

Kwenziwa avatar Apr 26 '22 10:04 Kwenziwa

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 ❤❤❤❤

LNMCode avatar Apr 29 '22 11:04 LNMCode

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'

davidmcraejr avatar Aug 02 '22 20:08 davidmcraejr

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 avatar Aug 06 '22 12:08 dwardy0101

@dwardy0101 are you using Kotlin?

davidmcraejr avatar Aug 06 '22 13:08 davidmcraejr

If so replace annotationProcessor with kapt and try it again

davidmcraejr avatar Aug 06 '22 13:08 davidmcraejr

@davidmcraejr @dwardy0101 @all I created video about it, please check it, hope it help you. ❤❤❤❤ https://youtu.be/zTygdC-QCz8

LNMCode avatar Aug 07 '22 00:08 LNMCode

@davidmcraejr no sir. native android (java)

@LNMCode thanks! It's working. I don't see any errors from Glide after implementing it.

dwardy0101 avatar Aug 07 '22 07:08 dwardy0101

That fixes.

import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule

@GlideModule
class GlideModule: AppGlideModule() {
}

whck6 avatar Dec 25 '23 12:12 whck6