Image Xamarin:图像不会显示在手机中,但会显示在模拟器中

Image Xamarin:图像不会显示在手机中,但会显示在模拟器中,image,xamarin.forms,xamarin.android,Image,Xamarin.forms,Xamarin.android,图标图像在emulator中测试时显示,但在我创建了一个apk并安装到手机中之后,它就不再显示了。这项工作以前进行过,但仅在更新一些NUGET之后才发生此问题 OnChangeLegStatusIcon2.Source = "arrived_green_small.png"; OnChangeLegStatusIcon1.Source = "futile_green.png"; <StackLayout Grid.Row="0"

图标图像在emulator中测试时显示,但在我创建了一个apk并安装到手机中之后,它就不再显示了。这项工作以前进行过,但仅在更新一些NUGET之后才发生此问题

OnChangeLegStatusIcon2.Source = "arrived_green_small.png";
OnChangeLegStatusIcon1.Source = "futile_green.png";

<StackLayout Grid.Row="0" Grid.Column="0" HorizontalOptions="Center">
    <Image x:Name="OnChangeLegStatusIcon1" HeightRequest="40">
        <Image.GestureRecognizers>
            <TapGestureRecognizer Tapped="OnChangeLegStatus1" NumberOfTapsRequired="1"/>
        </Image.GestureRecognizers>
    </Image>
    <Label x:Name="OnChangeLegStatusIcon1Label" HorizontalTextAlignment="Center"/>
</StackLayout>
<StackLayout Grid.Row="0" Grid.Column="1" HorizontalOptions="Center">
    <Image x:Name="OnChangeLegStatusIcon2" HeightRequest="40">
        <Image.GestureRecognizers>
            <TapGestureRecognizer Tapped="OnChangeLegStatus2" NumberOfTapsRequired="1"/>
        </Image.GestureRecognizers>
    </Image>
    <Label x:Name="OnChangeLegStatusIcon2Label" HorizontalTextAlignment="Center"/>
</StackLayout>
<StackLayout Grid.Row="0" Grid.Column="2" HorizontalOptions="Center">
    <Image Source="photo_green_small.png" HeightRequest="40">
        <Image.GestureRecognizers>
            <TapGestureRecognizer Tapped="OnCameraClicked" NumberOfTapsRequired="1"/>
        </Image.GestureRecognizers>
    </Image>
    <Label x:Name="CameraLabel" Text="Photo" HorizontalTextAlignment="Center"/>
</StackLayout>
OnChangeLegStatusIcon2.Source=“arrived\u green\u small.png”;
OnChangeLegStatusIcon1.Source=“futile_green.png”;

这可能不是真正的问题,但您可以使用“photo\u green\u small”而不使用扩展类型,这在以前的应用程序中导致了一些问题,真正的问题是,如果您恢复这些nugget更新,它是否解决了问题?如果是,请向我们提供更新的金块