Open flipper09112 opened 2 years ago
Check if you are missing the following NuGet: SkiaSharp.Views.Maui
Is this still happening in the latest release? I think the maui package was installed as I see the UseSkiaSharp
in the program. But I have been testing now and I have not had any issues.
Description I got this error when try open a page with skia:SKLottieView Microsoft.Maui.Platform.HandlerNotFoundException: 'Handler not found for view SkiaSharp.Views.Maui.Controls.SKCanvasView.'
Code I initialize Skia like documentation said
I have this to show lottie
Basic Information
Detailed IDE/OS information (click to expand)
``` **Microsoft.Maui.Platform.HandlerNotFoundException:** 'Handler not found for view SkiaSharp.Views.Maui.Controls.SKCanvasView.' [mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: Microsoft.Maui.Platform.HandlerNotFoundException: Handler not found for view SkiaSharp.Views.Maui.Controls.SKCanvasView. [mono-rt] at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context) in D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:line 92 [mono-rt] at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context) in D:\a\_work\1\s\src\Core\src\Platform\ElementExtensions.cs:line 127 [mono-rt] at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler) in D:\a\_work\1\s\src\Core\src\Handlers\ContentView\ContentViewHandler.Android.cs:line 44 [mono-rt] at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page) in D:\a\_work\1\s\src\Core\src\Handlers\ContentView\ContentViewHandler.Android.cs:line 49 [mono-rt] at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Reproduction Link repo github