Hello,
Welcome to Microsoft Q&A!
I checked the Toolkit document of Lottie, it only supports build 17763 or higher. Please make sure the target version and the min version of your project meet the version requirement.
Thank you.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi, I have used Lottie animation in my uwp project, using Microsoft.Toolkit.Uwp.UI.Lottie NuGet package. When packaging, I get Failed message in WACK. Any help is greatly appreciated.
FAILED
General metadata correctness
Error Found: The general metadata correctness test detected the following errors:
Parameter value of method add_AnimatedVisualInvalidated of type Microsoft.Toolkit.Uwp.UI.Lottie.ILottieVisualSourceClass in file C:\Program Files\WindowsApps\24936DolphinTechnologies.WebDroid-ConvertWebsiteto_1.0.6.0_x64__b9gpbj0g87vwm\Microsoft.Toolkit.Uwp.UI.Lottie.winmd references the non-Windows Runtime type Microsoft.UI.Xaml.Controls.IDynamicAnimatedVisualSource. Windows Runtime types can reference only Windows Runtime types.
The type Microsoft.UI.Xaml.Controls.IAnimatedVisual referenced by type Microsoft.Toolkit.Uwp.UI.Lottie.ILottieVisualSourceClass in file C:\Program Files\WindowsApps\24936DolphinTechnologies.WebDroid-ConvertWebsiteto_1.0.6.0_x64__b9gpbj0g87vwm\Microsoft.Toolkit.Uwp.UI.Lottie.winmd was not found. All types referenced in metadata files must be discoverable.
Parameter value of method add_AnimatedVisualInvalidated of type Microsoft.Toolkit.Uwp.UI.Lottie.LottieVisualSource in file C:\Program Files\WindowsApps\24936DolphinTechnologies.WebDroid-ConvertWebsiteto_1.0.6.0_x64__b9gpbj0g87vwm\Microsoft.Toolkit.Uwp.UI.Lottie.winmd references the non-Windows Runtime type Microsoft.UI.Xaml.Controls.IDynamicAnimatedVisualSource. Windows Runtime types can reference only Windows Runtime types.
The type Microsoft.UI.Xaml.Controls.IAnimatedVisual referenced by type Microsoft.Toolkit.Uwp.UI.Lottie.LottieVisualSource in file C:\Program Files\WindowsApps\24936DolphinTechnologies.WebDroid-ConvertWebsiteto_1.0.6.0_x64__b9gpbj0g87vwm\Microsoft.Toolkit.Uwp.UI.Lottie.winmd was not found. All types referenced in metadata files must be discoverable.
Impact if not fixed: Microsoft store doesn't allow apps that don't pass Windows Runtime Metadata Validation.
Hello,
Welcome to Microsoft Q&A!
I checked the Toolkit document of Lottie, it only supports build 17763 or higher. Please make sure the target version and the min version of your project meet the version requirement.
Thank you.