Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash while animating, Missing values for keyframe #13

Open
Durdonaa opened this issue Aug 13, 2019 · 8 comments
Open

App crash while animating, Missing values for keyframe #13

Durdonaa opened this issue Aug 13, 2019 · 8 comments

Comments

@Durdonaa
Copy link

Durdonaa commented Aug 13, 2019

The app is crushing with the exception of "Missing values for keyframe"
Using the last version of the plugin (0.2.0)
App is migrated to AndroidX

Full output:

E/AndroidRuntime(19998): FATAL EXCEPTION: main E/AndroidRuntime(19998): Process: com.example.tasnet, PID: 19998 E/AndroidRuntime(19998): java.lang.IllegalStateException: Missing values for keyframe. E/AndroidRuntime(19998): at com.airbnb.lottie.animation.keyframe.IntegerKeyframeAnimation.getValue(IntegerKeyframeAnimation.java:16) E/AndroidRuntime(19998): at com.airbnb.lottie.animation.keyframe.IntegerKeyframeAnimation.getValue(IntegerKeyframeAnimation.java:8) E/AndroidRuntime(19998): at com.airbnb.lottie.animation.keyframe.BaseKeyframeAnimation.getValue(BaseKeyframeAnimation.java:125) E/AndroidRuntime(19998): at com.airbnb.lottie.model.layer.BaseLayer.draw(BaseLayer.java:197) E/AndroidRuntime(19998): at com.airbnb.lottie.model.layer.CompositionLayer.drawLayer(CompositionLayer.java:100) E/AndroidRuntime(19998): at com.airbnb.lottie.model.layer.BaseLayer.draw(BaseLayer.java:201) E/AndroidRuntime(19998): at com.airbnb.lottie.LottieDrawable.draw(LottieDrawable.java:319) E/AndroidRuntime(19998): at android.widget.ImageView.onDraw(ImageView.java:1270) E/AndroidRuntime(19998): at android.view.View.draw(View.java:17469) E/AndroidRuntime(19998): at android.view.View.buildDrawingCacheImpl(View.java:16764) E/AndroidRuntime(19998): at android.view.View.buildDrawingCache(View.java:16625) E/AndroidRuntime(19998): at android.view.View.draw(View.java:17231) E/AndroidRuntime(19998): at android.view.ViewGroup.drawChild(ViewGroup.java:3921) E/AndroidRuntime(19998): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3711) E/AndroidRuntime(19998): at android.view.View.updateDisplayListIfDirty(View.java:16459) E/AndroidRuntime(19998): at android.view.View.draw(View.java:17238)

Flutter Doctor Summary:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.18362.239], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] VS Code, 64-bit edition (version 1.36.1)
[√] Connected device (1 available)

• No issues found!

@agent306
Copy link

This is why:
airbnb/lottie-android#1177

This plugin is using an old version of the player.

@ParsaGachkar
Copy link

Using Old version JSON didn't fixed the issue either? Can anyone confirm which version of bodymovin works?

@ParsaGachkar
Copy link

@CameronStuartSmith Can you confirm which version of bodymovin was used for generating example Animations?

@DanialV
Copy link

DanialV commented Sep 12, 2019

Please update lottie version to > 3.0 to fix this issue

@cannonlee
Copy link

may i know where to update the lottie version in flutter? can't seem to find it

@RenatFakhrutdinov
Copy link

I updated lottie version in flutter_lottie/android/build.gradle so as temporary solution you can use my repository and add to your pubspec.yaml next lines:

dependencies:
  flutter_lottie:
    git:
      url: https://github.com/RenatFakhrutdinov/flutter_lottie.git

@MrHazee
Copy link

MrHazee commented Apr 13, 2020

I updated lottie version in flutter_lottie/android/build.gradle so as temporary solution you can use my repository and add to your pubspec.yaml next lines:

dependencies:
  flutter_lottie:
    git:
      url: https://github.com/RenatFakhrutdinov/flutter_lottie.git

Hi,
Thanks for the temporary solution. How can I solve the problem permanent?
Thanks

@RenatFakhrutdinov
Copy link

@MrHazee Hi!
This lib isn't updated for a long time.
Try to use https://pub.dev/packages/lottie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants