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

Incorrect animation loads when gradle version is updated #2403

Closed
nawanirakshit opened this issue Oct 26, 2023 · 2 comments · Fixed by #2405
Closed

Incorrect animation loads when gradle version is updated #2403

nawanirakshit opened this issue Oct 26, 2023 · 2 comments · Fixed by #2405

Comments

@nawanirakshit
Copy link

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
Copy link
Author

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

@gpeal
Copy link
Collaborator

gpeal commented Nov 3, 2023

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

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

Successfully merging a pull request may close this issue.

2 participants