Glideapp Not Found Using Libraryglidemodule (glide 4)
Solution 1:
Glide v4 uses an annotation processor to generate an API. This allows applications to extend Glide’s API and include components provided by integration libraries.
To generate the GlideApp api in your Android Project, do the following:
In your Android Studio:
- Click on the "Build" menu
- Click "Make Module " to generate the project-specific
GlideAppClass. - If that doesn't work, rebuild the project using "Make Project"
Solution 2:
- You need to create a new class
MyAppGlideModuleand extendAppGlideModuleto it.
Refer the code below:
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;
// new since Glide v4@GlideModulepublicfinalclassMyAppGlideModuleextendsAppGlideModule {
// leave empty for now
}
- Build -> Make Project
Solution 3:
You cannot use generated API (i.e. the GlideApp class) while using LibraryGlideModule. Reference: http://bumptech.github.io/glide/doc/generatedapi.html#availability
"The generated API is only available for applications for now." (i.e. only available for AppGlideModule)
Solution 4:
If GlideAPP can't be generated
Attention: annotationProcessor com.github.bumptech.glide:compiler:4.9.0
Must be with AppGlideModule Implementation class In the same module
Solution 5:
Another reason for the GlideApp class to not generate could be other errors in the project. So, if you've added the
annotationProcessor "com.github.bumptech.glide:compiler:${rootProject.ext.glideVersion}"dependency, and set up a class which extends AppGlideModule and annotated properly with @GlideModule, then make sure scroll down in the Build View in Android Studio and make sure there are no errors other than GlideApp not found.

Post a Comment for "Glideapp Not Found Using Libraryglidemodule (glide 4)"