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

Animations flicker or won't show after update (Android only, iOS works perfectly) #362

Closed
ant-fx opened this Issue Aug 6, 2018 · 8 comments

Comments

Projects
None yet
7 participants
@ant-fx

ant-fx commented Aug 6, 2018

Hi Guys,

Thanks for such a great library!

Description

After updating to Lottie Android to 2.5.5 and lottie-react-native to 2.5.6 I've started getting the following warnings and my animations are blank. This was working 100% previously with the same animations and same code.

Any anyone suggest why these warnings might have started appearing even though I'm setting calling enableMergePathsForKitKatAndAbove(true)?


W/LOTTIE: Animation contains merge paths. Merge paths are only supported on KitKat+ and must be manually enabled by calling enableMergePathsForKitKatAndAbove().
W/LOTTIE: Animation contains merge paths. Merge paths are only supported on KitKat+ and must be manually enabled by calling enableMergePathsForKitKatAndAbove().
W/LOTTIE: Animation contains merge paths but they are disabled.

<Animation
  style={styles.layer1}
  source={PlanetAnimation}
  progress={this.state.progress1}
  enableMergePathsAndroidForKitKatAndAbove
/>

I have tried adding the enableMergePathsAndroidForKitKatAndAbove flag on the Animation element but that does not help.

I have also tried modifying the the LottieAnimationViewManager to force view.enableMergePathsForKitKatAndAbove(true) but I still get the same warning and my animations wont' display.

Environemnt

lottie-react-native@2.5.6

com.airbnb.android:lottie:2.5.5

@ant-fx ant-fx changed the title from Animations flicker or won't show after update to Animations flicker or won't show after update (Android only, iOS works perfectly) Aug 6, 2018

@ant-fx

This comment has been minimized.

ant-fx commented Aug 7, 2018

Update: This only seems to effect >=2.5.1

2.5.0 works perfectly

@sujitpk-perennial

This comment has been minimized.

sujitpk-perennial commented Aug 9, 2018

+1 Facing issue after upgrading to 2.5.6

@jdnichollsc

This comment has been minimized.

jdnichollsc commented Aug 17, 2018

I can't see my animations (an empty square) with the last version:
"lottie-react-native": "^2.5.6"
Regards, Nicholls

@Rikkiabb

This comment has been minimized.

Rikkiabb commented Aug 20, 2018

+1 on this, facing the same issue after upgrading to 2.5.6. Works fine on iOS, flickers on droid.

@Sammekl

This comment has been minimized.

Sammekl commented Aug 23, 2018

Exact same issue here, works fine on iOS, flickers and won't animate on Android

@Taylor123

This comment has been minimized.

Taylor123 commented Aug 26, 2018

Seeing the same issue. Has anyone found the root cause or workaround for this?

EDIT: just saw there's an open PR for it

@sujitpk-perennial

This comment has been minimized.

sujitpk-perennial commented Aug 27, 2018

I will suggest not to use 2.5.6 version. Switch to 2.5.0

@emilioicai

This comment has been minimized.

Collaborator

emilioicai commented Aug 27, 2018

I just published 2.5.7 including a fix for the play method on Android, can you guys check with the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment