Странная ошибка анимации Lottie на Android, работает на iOS. Путь не может вернуться к самому себеAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Странная ошибка анимации Lottie на Android, работает на iOS. Путь не может вернуться к самому себе

Сообщение Anonymous »

Кто-то сделал для меня эту анимацию Лотти: https://lottiefiles.com/share/DO3Kpo

Кажется, она отлично работает на iOS, но на Android выдает ошибку следующее исключение. Мы многое перепробовали, но не можем понять, в чем может быть проблема. Есть у кого какие мысли по этому поводу?

Java.Lang.IllegalStateException: Unable to parse composition ---> Java.Lang.IllegalArgumentException: The Path cannot loop back on itself.
at java.lang.IllegalArgumentException: The Path cannot loop back on itself.
at at android.view.animation.PathInterpolator.initPath(PathInterpolator.java:185)
at at android.view.animation.PathInterpolator.initCubic(PathInterpolator.java:158)
at at android.view.animation.PathInterpolator.(PathInterpolator.java:89)
at at android.support.v4.view.animation.PathInterpolatorCompat.create(PathInterpolatorCompat.java:82)
at at com.airbnb.lottie.parser.KeyframeParser.parseKeyframe(KeyframeParser.java:130)
at at com.airbnb.lottie.parser.KeyframeParser.parse(KeyframeParser.java:58)
at at com.airbnb.lottie.parser.PathKeyframeParser.parse(PathKeyframeParser.java:21)
at at com.airbnb.lottie.parser.AnimatablePathValueParser.parse(AnimatablePathValueParser.java:29)
at at com.airbnb.lottie.parser.AnimatablePathValueParser.parseSplitPath(AnimatablePathValueParser.java:55)
at at com.airbnb.lottie.parser.AnimatableTransformParser.parse(AnimatableTransformParser.java:54)
at at com.airbnb.lottie.parser.LayerParser.parse(LayerParser.java:99)
at at com.airbnb.lottie.parser.LottieCompositionParser.parseAssets(LottieCompositionParser.java:147)
at at com.airbnb.lottie.parser.LottieCompositionParser.parse(LottieCompositionParser.java:77)
at at com.airbnb.lottie.LottieCompositionFactory.fromJsonReaderSyncInternal(LottieCompositionFactory.java:248)
at at com.airbnb.lottie.LottieCompositionFactory.fromJsonReaderSync(LottieCompositionFactory.java:242)
at at com.airbnb.lottie.LottieCompositionFactory.fromJsonInputStreamSync(LottieCompositionFactory.java:177)
at at com.airbnb.lottie.LottieCompositionFactory.fromJsonInputStreamSync(LottieCompositionFactory.java:171)
at at com.airbnb.lottie.LottieCompositionFactory.fromAssetSync(LottieCompositionFactory.java:114)
at at com.airbnb.lottie.LottieCompositionFactory$2.call(LottieCompositionFactory.java:95)
at at com.airbnb.lottie.LottieCompositionFactory$2.call(LottieCompositionFactory.java:93)
at at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at at java.lang.Thread.run(Thread.java:764)


Подробнее здесь: https://stackoverflow.com/questions/590 ... ot-loop-ba
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»