Lottie 动画返回此错误:Lottie 不支持 3D 图层

问题描述

每次运行我的应用程序时,都会出现此错误错误:Lottie 不支持 3D 图层。 在同一个应用程序中有更多的 LottieAnimationView 并且没有给出错误,只有这个返回它。 LottieAnimationView 声明如下:

LottieAnimationView bookAnimation = findViewById(R.id.backToSchoolAnimation);
bookAnimation.setVisibility(View.VISIBLE);

布局声明如下:

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <com.airbnb.lottie.LottieAnimationView
                android:id="@+id/backToSchoolAnimation"
                android:layout_width="match_parent"
                android:layout_height="450dp"
                app:lottie_autoplay="true"
                android:visibility="gone"
                app:lottie_rawRes="@raw/back_to_school" />
        </LinearLayout>

如果有人可以指出我的代码中的错误,那将会很有帮助。谢谢!干杯!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)