报错如下:
java.lang.IllegalStateException: Unable to parse composition
at com.airbnb.lottie.LottieAnimationView$1.onResult(LottieAnimationView.java:74)
at com.airbnb.lottie.LottieAnimationView$1.onResult(LottieAnimationView.java:67)
at com.airbnb.lottie.LottieAnimationView$3.onResult(LottieAnimationView.java:91)
at com.airbnb.lottie.LottieAnimationView$3.onResult(LottieAnimationView.java:84)
at com.airbnb.lottie.LottieTask.notifyFailureListeners(LottieTask.java:158)
at com.airbnb.lottie.LottieTask.access$200(LottieTask.java:27)
at com.airbnb.lottie.LottieTask$1.run(LottieTask.java:133)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8503)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
Caused by: com.airbnb.lottie.parser.moshi.JsonDataException: Expected a double but was END_ARRAY at path $.layers[0].shapes[0].it[0].it[12].c.k[3]
at com.airbnb.lottie.parser.moshi.JsonUtf8Reader.nextDouble(JsonUtf8Reader.java:686)
at com.airbnb.lottie.parser.ColorParser.parse(ColorParser.java:23)
at com.airbnb.lottie.parser.ColorParser.parse(ColorParser.java:10)
at com.airbnb.lottie.parser.KeyframeParser.parseStaticValue(KeyframeParser.java:180)
at com.airbnb.lottie.parser.KeyframeParser.parse(KeyframeParser.java:70)
at com.airbnb.lottie.parser.KeyframesParser.parse(KeyframesParser.java:38)
at com.airbnb.lottie.parser.AnimatableValueParser.parse(AnimatableValueParser.java:79)
at com.airbnb.lottie.parser.AnimatableValueParser.parseColor(AnimatableValueParser.java:65)
at com.airbnb.lottie.parser.ShapeFillParser.parse(ShapeFillParser.java:40)
at com.airbnb.lottie.parser.ContentModelParser.parse(ContentModelParser.java:62)
at com.airbnb.lottie.parser.ShapeGroupParser.parse(ShapeGroupParser.java:38)
at com.airbnb.lottie.parser.ContentModelParser.parse(ContentModelParser.java:53)
at com.airbnb.lottie.parser.ShapeGroupParser.parse(ShapeGroupParser.java:38)
at com.airbnb.lottie.parser.ContentModelParser.parse(ContentModelParser.java:53)
at com.airbnb.lottie.parser.LayerParser.parse(LayerParser.java:149)
at com.airbnb.lottie.parser.LottieCompositionMoshiParser.parseLayers(LottieCompositionMoshiParser.java:121)
at com.airbnb.lottie.parser.LottieCompositionMoshiParser.parse(LottieCompositionMoshiParser.java:87)
at com.airbnb.lottie.LottieCompositionFactory.fromJsonReaderSyncInternal(LottieCompositionFactory.java:371)
at com.airbnb.lottie.LottieCompositionFactory.fromJsonReaderSync(LottieCompositionFactory.java:364)
at com.airbnb.lottie.LottieCompositionFactory.fromJsonInputStreamSync(LottieCompositionFactory.java:294)
at com.airbnb.lottie.LottieCompositionFactory.fromJsonInputStreamSync(LottieCompositionFactory.java:287)
at com.airbnb.lottie.LottieCompositionFactory$4.call(LottieCompositionFactory.java:277)
at com.airbnb.lottie.LottieCompositionFactory$4.call(LottieCompositionFactory.java:274)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
放弃了键盘 (作者)
OK了,感谢!!!
2024-07-06 00:15