{"record":{"id":"860db76447807896","repo":"bumptech/glide","slug":"generatedappglidemoduleimpl-is-implemented-incorre","errorCode":null,"errorMessage":"GeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually implemented this class, remove your implementation. The Annotation processor will generate a correct implementation.","messagePattern":"GeneratedAppGlideModuleImpl is implemented incorrectly\\. If you've manually implemented this class, remove your implementation\\. The Annotation processor will generate a correct implementation\\.","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"critical","filePath":"library/src/main/java/com/bumptech/glide/Glide.java","lineNumber":317,"sourceCode":"                + \" annotationProcessor compile dependency on com.github.bumptech.glide:compiler\"\n                + \" in your application and a @GlideModule annotated AppGlideModule implementation\"\n                + \" or LibraryGlideModules will be silently ignored\");\n      }\n      // These exceptions can't be squashed across all versions of Android.\n    } catch (InstantiationException e) {\n      throwIncorrectGlideModule(e);\n    } catch (IllegalAccessException e) {\n      throwIncorrectGlideModule(e);\n    } catch (NoSuchMethodException e) {\n      throwIncorrectGlideModule(e);\n    } catch (InvocationTargetException e) {\n      throwIncorrectGlideModule(e);\n    }\n    return result;\n  }\n\n  private static void throwIncorrectGlideModule(Exception e) {\n    throw new IllegalStateException(\n        \"GeneratedAppGlideModuleImpl is implemented incorrectly.\"\n            + \" If you've manually implemented this class, remove your implementation. The\"\n            + \" Annotation processor will generate a correct implementation.\",\n        e);\n  }\n\n  @SuppressWarnings(\"PMD.UnusedFormalParameter\")\n  Glide(\n      @NonNull Context context,\n      @NonNull Engine engine,\n      @NonNull MemoryCache memoryCache,\n      @NonNull BitmapPool bitmapPool,\n      @NonNull ArrayPool arrayPool,\n      @NonNull RequestManagerRetriever requestManagerRetriever,\n      @NonNull ConnectivityMonitorFactory connectivityMonitorFactory,\n      int logLevel,\n      @NonNull RequestOptionsFactory defaultRequestOptionsFactory,\n      @NonNull Map<Class<?>, TransitionOptions<?, ?>> defaultTransitionOptions,","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/bumptech/glide/blob/eb14a895d8f866e6a08c3e19d50ea3bd2c12c20a/library/src/main/java/com/bumptech/glide/Glide.java#L299-L335","documentation":"Thrown by Glide.throwIncorrectGlideModule() when reflection fails to instantiate the generated GeneratedAppGlideModuleImpl (InstantiationException, IllegalAccessException, NoSuchMethodException, or InvocationTargetException). The generated class is missing, malformed, or its constructor threw, so Glide cannot complete initialization.","triggerScenarios":"getAnnotationGeneratedGlideModules() tries to reflectively load and construct com.bumptech.glide.GeneratedAppGlideModuleImpl; any of the listed reflection exceptions is funneled to throwIncorrectGlideModule().","commonSituations":"The Glide annotation processor (compiler) is not applied, so GeneratedAppGlideModuleImpl was never generated; someone hand-wrote a GeneratedAppGlideModuleImpl that does not match the expected constructor; R8/ProGuard obfuscated or removed the generated class; the AppGlideModule's constructor or a referenced component threw during instantiation; version mismatch between compiler and library.","solutions":["Ensure the Glide annotation processor is on the annotationProcessor/kapt/ksp configuration: annotationProcessor 'com.github.bumptech.glide:compiler:<version>'.","Delete any hand-written GeneratedAppGlideModuleImpl class and let the processor generate it.","Add keep rules for the generated class if using R8/ProGuard (the processor-generated classes should be kept).","Align compiler and library versions to the same release.","Inspect the cause exception (chained) to see whether a constructor or dependency failed, and fix the underlying error.","Run a clean build to regenerate sources."],"exampleFix":"// before\n// no annotation processor, or a hand-written GeneratedAppGlideModuleImpl\ndependencies {\n  implementation 'com.github.bumptech.glide:glide:4.16.0'\n  // processor missing\n}\n\n// after\ndependencies {\n  implementation 'com.github.bumptech.glide:glide:4.16.0'\n  annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'\n}\n// and remove any manually created GeneratedAppGlideModuleImpl.java/.kt","handlingStrategy":"validation","validationCode":"// Ensure the annotation processor is configured and versions match.\ndependencies {\n  val v = \"4.16.0\"\n  implementation(\"com.github.bumptech.glide:glide:$v\")\n  annotationProcessor(\"com.github.bumptech.glide:compiler:$v\")\n}\n// Confirm no hand-written GeneratedAppGlideModuleImpl exists.","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Always apply the Glide compiler with a matching version.","Never hand-write GeneratedAppGlideModuleImpl.","Add R8/ProGuard keep rules for generated Glide classes.","Inspect the chained cause to locate the real failure."],"tags":["glide-core","initialization","annotation-processor","proguard","glidemodule","runtime"],"backgroundTag":null,"analyzedSha":"eb14a895d8f866e6a08c3e19d50ea3bd2c12c20a","analyzedAt":"2026-08-14T01:43:54.821Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}