Share via

load image xamarin

Olivier Champion 1 Reputation point
2022-08-20T13:56:29.507+00:00

Here is the error I got when I want load an image in xamarin.
Image Loading: Image failed to load: E_NETWORK_ERROR
what ever I try even with a brand new project I got it. I was in visual studio 2022 and try with the visual 2019 to see if there was any bug on version but I got the same error. I do nothing special just

<Image Source=" chien.jpg" Aspect="Fill" WidthRequest="150" HeightRequest="95"/>
<ListView x:Name="imagesList">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Horizontal">
<ImageButton Source="chien.jpg" Clicked="PlaySound1" BorderColor="#BC32AF" WidthRequest="150" HeightRequest="95"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>

le jdk est jdk-17.0.1
windows 11
sdk android 11

Developer technologies | .NET | Xamarin

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.