airbnb / lottie-android

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

Incorrect animation loads when gradle version is updated #2403

Closed nawanirakshit closed 10 months ago

nawanirakshit commented 10 months ago

The animation breaks when updating the Gradle version from 3.6.0 to the latest version(6.1.0).

I've attached a screenshot of the animation with the old and new versions.

Screenshot 2023-10-26 at 11 44 24 AM

Strangely, the animation code to display the animation is identical for both versions, but just updating and running the code gives broken animation.

Sample JSON can be viewed from following https://mp13017261cad0e033b7.free.beeceptor.com/data

Currently, I am setting animation with the following code.

lottieAnimationView.setAnimationFromJson("JSON_HERE", null);

And the Lottie view looks like below


<com.airbnb.lottie.LottieAnimationView

            android:id="@+id/animation"

            android:layout_width="255dp"

            android:layout_height="255dp"

            android:layout_gravity="center"

            app:lottie_autoPlay="true"

            app:lottie_loop="true"
 />
nawanirakshit commented 10 months ago

Hi @gpeal whats the gradle version we should use for this fix? Thanks

gpeal commented 10 months ago

It will be in the next release. Should be in the next week or two. 6.1.1-SNAPSHOT will have it, too