Skip to content

[BUG] Maui Android .Net 7 Linker issue #2327

@epsmae

Description

@epsmae

Description

Skia Sharp Nugets results in a linker errror in Maui with .Net 7 wen Startup Tracing is used for an Android Release.

Expected Behavior

Works in Debug and Release mode.

Actual Behavior

Fatal error in IL Linker Unhandled exception. Mono.Linker.LinkerFatalErrorException: ILLink: error IL1011: Failed to write 'obj\Release\net7.0 -android\android-x64\linked\SkiaSharp.Views.Android.dll

Basic Information

  • Version with issue: 2.88.3
  • Last known good version: 2.88.1 only with .Net 6
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • Android: Android 13 API level 33

May be a workaround for someone
If Aot and trimming is disabled Disable Linking

Reproduction Link

Issue Sample Repo with whole error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions