airbnb / lottie-android

Render After Effects animations natively on Android and iOS, Web, and React Native
http://airbnb.io/lottie/
Apache License 2.0
35.02k stars 5.41k forks source link

IllegalArgumentException:Invalid Layer Save Flag - only ALL_SAVE_FLAGS is allowed #2358

Closed obamakang closed 1 year ago

obamakang commented 1 year ago

Caused by: 5 java.lang.IllegalArgumentException:Invalid Layer Save Flag - only ALL_SAVE_FLAGS is allowed 6 android.graphics.Canvas.checkValidSaveFlags(Canvas.java:378) 7 android.graphics.Canvas.saveLayer(Canvas.java:455) 8 com.airbnb.lottie.utils.Utils.void saveLayerCompat(android.graphics.Canvas,android.graphics.RectF,android.graphics.Paint,int)(Utils.java:298) 9 com.airbnb.lottie.model.layer.BaseLayer.void draw(android.graphics.Canvas,android.graphics.Matrix,int)(BaseLayer.java:311) 10 com.airbnb.lottie.model.layer.CompositionLayer.void drawLayer(android.graphics.Canvas,android.graphics.Matrix,int)(CompositionLayer.java:128) 11 com.airbnb.lottie.model.layer.BaseLayer.void draw(android.graphics.Canvas,android.graphics.Matrix,int)(BaseLayer.java:259)

obamakang commented 1 year ago

how to solve this problem?

obamakang commented 1 year ago

This bug occurs very frequently. Please raise its priority and solve it as soon as possible. Thank you!

gpeal commented 1 year ago

Can you provide more information? An animation or device? The only way I can see this being thrown is for a device that claims to be API level 21 or lower but is actually 28 or higher.