更改动画颜色后洛蒂动画错误

Mih*_*rma 3 user-interface android ios lottie

异常:由以下原因引起:com.airbnb.lottie.parser.moshi.JsonDataException:预期为双精度,但在路径 $.layers[3].shapes[0].it[1].ck[3] 处为 END_ARRAY

描述该错误:正常动画正常工作,但在https://editor.lottiefiles.com/更改动画颜色后 崩溃

洛蒂版本:3.4.1

implementation "com.airbnb.android:lottie:3.4.1"
Run Code Online (Sandbox Code Playgroud)

安卓版本:安卓12

我认为我选择的动画有问题,所以我尝试另一个动画,但在更改动画颜色后它仍然崩溃。像 Lottie 这样的战利品在编辑器上有错误(https://editor.lottiefiles.com/

Fel*_*lma 10

你可以将战利品库撞到:

implementation "com.airbnb.android:lottie:3.5.0"
Run Code Online (Sandbox Code Playgroud)

我用你的战利品文件进行了测试,它工作正常。

<com.airbnb.lottie.LottieAnimationView
    android:id="@+id/animation_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:lottie_autoPlay="true"
    app:lottie_loop="true"
    app:lottie_rawRes="@raw/test" />
Run Code Online (Sandbox Code Playgroud)

你的战利品