Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skiasharp version issue in maui 9 #26231

Closed
michaelonz opened this issue Nov 29, 2024 · 1 comment
Closed

Skiasharp version issue in maui 9 #26231

michaelonz opened this issue Nov 29, 2024 · 1 comment
Labels
t/bug Something isn't working

Comments

@michaelonz
Copy link

michaelonz commented Nov 29, 2024

Description

Upgraded my application to maui 9 and now when I run it I get the following error at startup:

The version of the native libSkiaSharp library (115.0) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [88.1, 89.0).

So appears we have a version mismatch - however I can't find version 115 in my project - how do I narrow this down?

Steps to Reproduce

I have the following packages in my project:

   <PackageReference Include="CommunityToolkit.Maui" Version="9.1.1" />
    <PackageReference Include="CommunityToolkit.Maui.Maps" Version="2.0.4" />
    <PackageReference Include="CommunityToolkit.Maui.MediaElement" Version="4.1.2" />
    <PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
    <PackageReference Include="FirebaseAdmin" Version="3.1.0" />
    <PackageReference Include="IdentityModel" Version="7.0.0" />
    <PackageReference Include="IdentityModel.OidcClient" Version="6.0.0" />
    <PackageReference Include="InputKit.Maui" Version="4.5.0" />
    <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="9.0.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
    <PackageReference Include="Microsoft.Maui.Controls.Maps" Version="9.0.10" />
    <PackageReference Include="Microsoft.Maui.Maps" Version="9.0.10" />
    <PackageReference Include="Mopups" Version="1.3.2" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <PackageReference Include="Polly" Version="8.5.0" />
    <PackageReference Include="Sentry.Maui" Version="4.13.0" />
    <PackageReference Include="Shiny.Hosting.Maui" Version="4.0.0-beta-0040" />
    <PackageReference Include="Shiny.Push" Version="4.0.0-beta-0040" />
    <PackageReference Include="SkiaSharp.Extended.UI.Maui" Version="2.0.0" />
    <PackageReference Include="Syncfusion.Maui.Buttons" Version="27.2.4" />
    <PackageReference Include="Syncfusion.Maui.Gauges" Version="27.2.4" />
    <PackageReference Include="Syncfusion.Maui.ListView" Version="27.2.4" />
    <PackageReference Include="Syncfusion.Maui.Picker" Version="27.2.4" />
    <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" />
    <PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
    <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="9.0.10" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.0" />
    <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.40 SR5

Affected platforms

iOS

Affected platform versions

IOS17.6.1

Did you find any workaround?

No response

Relevant log output

This is the error that is thrown when the app starts up :

System.InvalidOperationException
The version of the native libSkiaSharp library (115.0) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [88.1, 89.0).

Once it hits this error it exits.
@michaelonz michaelonz added the t/bug Something isn't working label Nov 29, 2024
@michaelonz
Copy link
Author

Hi Guys,
You can close this - Im not sure what exactly resolved this but I suspect it was deleting the BIN and DEBUG folders.
But the app now runs.

Maybe when we do a clean on the solution in vscode it should also remove the bin and debug folders as this is often in a weird state that causes un predictable issues when running (Particularly on iOS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant