Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lottie error:"Java.Lang.IllegalStateException: 'Unable to parse composition'"

When i tried to load gif to my project suddenly return me error:

Java.Lang.IllegalStateException: 'Unable to parse composition'

Image for more information link

I want to insert gif to my project I tried to use Lottie and Json File

My code so far

<forms:AnimationView 
    x:Name="animationView" 
    Grid.Row="1"
    Animation="first.json" 
    Loop="false" 
    AutoPlay="false"/>
like image 667
Hristo Ivanov Avatar asked Oct 23 '25 02:10

Hristo Ivanov


2 Answers

In my case i replaced app:lottie_url with app:lottie_rawRes , and it worked just fine

like image 156
nesibeyyubov Avatar answered Oct 26 '25 12:10

nesibeyyubov


My case: upgrade to latest version, because old Lottie does not support old json format

implementation "com.airbnb.android:lottie:6.0.0"
like image 39
Jason Avatar answered Oct 26 '25 12:10

Jason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!