mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.24k stars 526 forks source link

[BUG] "Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView."[BUG] <title> #2910

Open NastyaZorro169 opened 1 week ago

NastyaZorro169 commented 1 week ago

Description

Good afternoon When the application starts, it gives this error, although I did all the tips that were found, which may not be the case Microsoft.Maui.Platform.HandlerNotFoundException: 'Handler not found for view SkiaSharp.Views.Maui.Controls.SKGLView There is a line in MauiProgram .UseSkiaSharp() added Version SkiaSharp.Views.Maui.Controls 2.88.8

Code

XAML:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:skia="clr-namespace:SkiaSharp.Views.Maui.Controls;assembly=SkiaSharp.Views.Maui.Controls"
             NavigationPage.HasBackButton="True">
<ContentPage.Content>
    <Grid  RowSpacing="0">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="168"/>
        </Grid.RowDefinitions>
        <skia:SKGLView 
            Grid.Row="0"
            x:Name="openGLView" 
            Margin="0, -1, 0, 0"
            HasRenderLoop="true" 
            HorizontalOptions="FillAndExpand" 
            VerticalOptions="FillAndExpand" />
        </Grid>
    </ContentPage.Content>
</ContentPage>

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

Other (Please indicate in the description)

Last Known Good Version of SkiaSharp

Other (Please indicate in the description)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Android, iOS

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

TommiGustafsson-HMP commented 1 week ago

Is this on Android and iOS? Or on Windows?

NastyaZorro169 commented 1 week ago

Android and iOS

TommiGustafsson-HMP commented 4 days ago

Please try 3.0-preview3.1.