quicoli/LottieSharp

Application Failed to Run

Closed this issue ยท 9 comments

Fresh application, after installing the Nuget package. still failed.

Thank you for using LottieSharp
This package is compatible with WPF only and i can see you have universal app

It's WPF, And I named it as "FakeUWPanime" because, I thought only UWP is being supported. When I found Lottiesharp I tried to use it and ended up as the "screenshots" shows. Same exception showed up in the sample/demo which is present in this repository.

Are you loading any specific animation? Or did you try to download the source and run it with default animation?

I downloaded a json file from the Lottie website, and as you can see the same is present in the first screenshot" strong lock.json".

Hi, is the json file copied into the debug/release folder?

Yeah, thanks, it works now, But the designer still shows NullReferenceException. I still want to see the designer to work properly on UI.

It looks a bug in the designer. We have skipping codes for the designer and I'll check it again.

I encountered this issue too, my work around is just setting the FileName property on your AnimationView in the code. In my experience, the designer has trouble finding relative paths if you aren't using a pack URI but since LottieSharp doesnt support pack URIs (maybe a feature request ๐Ÿ˜„) you should convert the relative path into an absolute path at runtime then pass it to the animation view.