jonathanpeppers / glidex

glidex.forms is a library using Glide for faster Xamarin.Forms images on Android. Find out more about Glide at https://github.com/bumptech/glide
MIT License
195 stars 21 forks source link

[Glide] Failed to find GeneratedAppGlideModule. #30

Open eli191 opened 5 years ago

eli191 commented 5 years ago

Hi, I get this in my application (Android project of a Xamarin.Forms solution) output

[glidex] IImageViewHandler of typeAndroid.Glide.ImageViewHandler, instance created. [glidex] IImageViewHandler of typeAndroid.Glide.ImageViewHandler,LoadImageAsynccalled. [Glide] 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 [glidex] Loadinghttps://firebasestorage.googleapis.com/...as a web URL

I am filling the Source property of my image in the code behind like this MyImage.Source = ImageSource.FromUri(new Uri("https://firebasestorage.googleapis.com/..."));

My image is not showing. Please can you kindly provide any help?

jonathanpeppers commented 5 years ago

@elisabeth-mitton can you post all the NuGet packages + versions you are using? (packages.config or list of <PackageReference/>)

I suspect there is a Xamarin.Android.Support.Annotations NuGet causing this...

I didn't intend for any annotations to get processed, and seems like they might be.

AmjadSaab commented 2 years ago

@jonathanpeppers my code also show this error : 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. [io01-26 12:50:15.907 I] Glide treats LayoutParams.WRAP_CONTENT as a request for an image the size of this device's screen dimensions. If you want to load the original image and are ok with the corresponding memory cost and OOMs (depending on the input size), use override(Target.SIZE_ORIGINAL). Otherwise, use LayoutParams.MATCH_PARENT, set layout_width and layout_height to fixed dimension, or use .override() with fixed dimensions. And the images are not displaying expect in case i specified the HeightRequest in the Xaml Image control

jonathanpeppers commented 2 years ago

@AmjadSaab can you share an example that causes this problem?

We could add a sample page here: https://github.com/jonathanpeppers/glidex/tree/main/glidex.forms.sample/Forms