question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing values for keyframe

See original GitHub issue

I’m exporting my animation using BodyMovin and I’m getting this error

 java.lang.IllegalStateException: Missing values for keyframe.
        at com.airbnb.lottie.animation.keyframe.FloatKeyframeAnimation.getValue(FloatKeyframeAnimation.java:16)
        at com.airbnb.lottie.animation.keyframe.FloatKeyframeAnimation.getValue(FloatKeyframeAnimation.java:8)
        at com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.getValue(BaseKeyframeAnimation.java:125)
        at com.airbnb.lottie.animation.keyframe.TransformKeyframeAnimation.getMatrix(TransformKeyframeAnimation.java:113)

I also have problems when I try to click on “edit layer colors” it doesn’t show the animation, what I’m missing?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:26
  • Comments:29

github_iconTop GitHub Comments

26reactions
gpealcommented, Apr 10, 2019

@joancolmenerodev @hlk-trkn @meylinb @aadishgoel2013 that is correct. Lottie 3.0 and Bodymovin 5.5 has some significant json optimizations that will save upwards of 1/3 on the json size and parse speed. However, you must be on 3.0 or enable “export as old format” in bodymovin settings.

15reactions
aadishgoel2013commented, Apr 10, 2019

My json files works fine when i see it on preview in https://lottiefiles.com/preview but in android This Error keeps on coming Process: com.example.lottietry, PID: 16998 java.lang.IllegalStateException: Missing values for keyframe. at com.airbnb.lottie.animation.keyframe.FloatKeyframeAnimation.getValue(FloatKeyframeAnimation.java:16) at com.airbnb.lottie.animation.keyframe.FloatKeyframeAnimation.getValue(FloatKeyframeAnimation.java:8) at com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.getValue(BaseKeyframeAnimation.java:125) at com.airbnb.lottie.animation.keyframe.TransformKeyframeAnimation.getMatrix(TransformKeyframeAnimation.java:113) at com.airbnb.lottie.model.layer.BaseLayer.draw(BaseLayer.java:199) at com.airbnb.lottie.model.layer.CompositionLayer.drawLayer(CompositionLayer.java:100) at com.airbnb.lottie.model.layer.BaseLayer.draw(BaseLayer.java:201) at com.airbnb.lottie.LottieDrawable.draw(LottieDrawable.java:319) at android.widget.ImageView.onDraw(ImageView.java:1367) at android.view.View.draw(View.java:19226) at android.view.View.buildDrawingCacheImpl(View.java:18474) at android.view.View.buildDrawingCache(View.java:18334) at android.view.View.draw(View.java:18946) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1246) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.updateDisplayListIfDirty(View.java:18167) at android.view.View.draw(View.java:18954) at android.view.ViewGroup.drawChild(ViewGroup.java:4240) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4024) at android.view.View.draw(View.java:19229) at com.android.internal.policy.DecorView.draw(DecorView.java:791) at android.view.View.updateDisplayListIfDirty(View.java:18176) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:685) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:691) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:799) at android.view.ViewRootImpl.draw(ViewRootImpl.java:3056) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2851) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2404) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1437) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6886) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1029) at android.view.Choreographer.doCallbacks(Choreographer.java:841) at android.view.Choreographer.doFrame(Choreographer.java:772) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1015) at android.os.Handler.handleCallback(Handler.java:794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6651) at java.lang.reflect.Method.invoke(Native Method) 2019-04-10 11:13:35.094 16998-16998/com.example.lottietry E/AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on Lottiefiles. Free Lottie Animation
Hi, Using it for android, I'm getting java.lang.IllegalStateException: Missing values for keyframe. Can anyone help me in this regard? commenter avatar.
Read more >
java.lang.IllegalStateException: Missing values for keyframe.
java. lang. IllegalStateException: Missing values for keyframe. Application breaks down with above error.
Read more >
com.airbnb.lottie.animation.keyframe ...
com.airbnb.lottie.animation.keyframe.IntegerKeyframeAnimation maven / gradle build tool code. The class is part of the package ➦ Group: com.airbnb.android ...
Read more >
Android App throws error only after instalation
IllegalStateException: Missing values for keyframe. at com.a.a.a.b.e.b(IntegerKeyframeAnimation.java:16) at com.
Read more >
Keyframe Formats - Web APIs | MDN
After generating a suitable set of keyframes from the property value lists, each supplied offset is applied to the corresponding keyframe. If ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found