Glide showing error: Failed to find GeneratedAppGlideModule

前端 未结 6 1323
小鲜肉
小鲜肉 2020-12-05 09:37

I am trying to load an image using glide but somehow I can not load the image using glide. As it shows following error:

Failed to find GeneratedAppGli

6条回答
  •  借酒劲吻你
    2020-12-05 10:11

    I have faced this issue with Glide:4.9.0 with AndroidX
    solved it like this

    In your gradle.properties
    android.useAndroidX = true
    android.enableJetifier=true

    In your build.gradle
    //Glide dependency implementation 'com.github.bumptech.glide:glide:4.9.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

    Then add your CustomGlideModule
    @GlideModule public class CustomeGlideModule extends AppGlideModule {}

    The final step generates the GlideModule
    Build >> Make Project and you should see the generated module in your build folder

提交回复
热议问题