question

MGBhadurudeen-1345 avatar image
0 Votes"
MGBhadurudeen-1345 asked RoyLi-MSFT commented

I get Failed message in WACK

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.

windows-uwp
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I have some questions here. What's the target version and min version of your app? I checked the Toolkit document of Lottie, it only supports build 17763 or higher. Does the min version meet this requirement? Another thing is that is this a local WACK test? If it is, you could upload your package to the partner center and there will be another online WACK test which will be more precise.


0 Votes 0 ·

Yes, you are right. My project was 16299. That's is the problem. Thank you for your reply. I wish, Visual Studio could have notified me, when I used this namespace in my project.

0 Votes 0 ·

Hi, If you post your reply as an answer, I accept it.

0 Votes 0 ·
Show more comments

1 Answer

RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.