Issue with SkiaSharp Native Library Version Mismatch in .NET MAUI (IOS only)

Thinh NPD 45 Reputation points
2025-02-06T08:36:37.7133333+00:00

System.TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception.

---> System.InvalidOperationException: The version of the native libSkiaSharp library (116.0) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [118.0, 119.0).

My environment:

  • .NET MAUI version: 8.0
  • SkiaSharp package version: 3.116.1
  • Native Assets Packages: SkiaSharp.NavtiveAsset.IOS

What I've tried so far:

  • Updating all SkiaSharp-related NuGet packages to the latest versions.
  • Cleaning the solution and rebuilding the project.
  • Verifying that the native assets packages are correctly referenced.
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,962 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.