AnimationViewRenderer doesn't exist in the context error in Xamarin forms Android
AnimationViewRenderer doesn't exist in the context error in Xamarin forms Android
Why AnimationViewRenderer doesn't exist in the context error when trying to add Lottie animation in Xamarin forms Android project's MainActivity.cs?? I using Visual Studio 2017. Please reply if Someone has the answer.
1 Answer
1
You will need to add
AnimationViewRenderer.Init();
After initialising Forms in Android MainActivity.
A good post explaining the whole process:
https://xamgirl.com/lottie-animations-step-by-step-in-xamarin-forms/
You have all the packages installed, in both Forms and .Android project? Check your project if the Lottie package is actually installed.
– Bruno Caceiro
16 hours ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
I did that @Bruno but AnimationViewRenderer.Init(); is showing error. It says AnimationViewRenderer doesnot exist in this context.
– M.Paul D
22 hours ago