Xamarin 洛蒂动画

Xamarin lottie animation

我正在尝试使用 Lottie 来显示动画,但在为 Android 调试时遇到问题:

LottieAnimationView not displayed because it is too large to fit into a software layer (or drawing cache), needs 9072000 bytes, only 8294400 available

我的XAML代码:

<ContentPage.Content>
<StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
    <forms:AnimationView
        x:Name="AnimationView"
        Animation="data.json"
        AutoPlay="True" Loop="true"
        VerticalOptions="FillAndExpand"
        HorizontalOptions="FillAndExpand"
        Scale="0.2"/>
</StackLayout>

谁能帮我解决这个问题?

您需要在 After Effects 中更改动画的导出设置,以适应软件层限制