Skip to content

[.NET 10][Mac] Build fails for Android #463

Closed as duplicate
Closed as duplicate

Description

@jhanvi03

Current behavior 🐛

On mac Build fails for Android with .NET 10 project on both Rider and Vs Code. Unable to repro with .NET9 Project. uno-check & uno-check --pre-major both are green.

RiderLogs.txt
VSCLogs.txt

VS Code - Uno Platform Logs:

[Info] Launching XAML language server /Users/jhanvi/.vscode/extensions/unoplatform.vscode-0.22.1/bin/lshost/net9.0/Uno.LSP.Host.dll
[Info] XAML language server /Users/jhanvi/.vscode/extensions/unoplatform.vscode-0.22.1/bin/lshost/net9.0/Uno.LSP.Host.dll successfully started
[Info] Found 'ms-dotnettools.csharp' version 2.90.60.
[Info] Found 'ms-dotnettools.csdevkit' version 1.50.51.
[Info] C# extension onServerStateChange API is available.
[Info] Running in Dev Kit mode
[Info] Uno Platform "dotnet new" templates are already installed. The templates may be updated by running "dotnet new install Uno.Templates"
[Info] Setting active project /Users/jhanvi/CliProjects/net10Blank/net10Blank/net10Blank.csproj
[Info] Parsed the Uno.Sdk version from the manifest. The latest version is 6.2.36.
[Info] User is targeting 6.3.28 Uno.Sdk.
[Info] Parsed the Uno.Sdk version from the manifest. The latest version is 6.2.36.
[Info] Verifying the environment with Uno.Check.
[Info] Verifying Uno.Check installation.
[Info] Uno.Check is installed.
[Info] Starting Uno.Check with "--tfm net10.0-android --tfm net10.0-ios --tfm net10.0-browserwasm --tfm net10.0-desktop"
[Info] Uno.Check output successfully written to: /var/folders/4t/h9r9hqjd6lzf32d4c4m2ht7h0000gn/T/uno-check-b0656309-09e7-4669-b86b-5d7891da787e.txt
[Info] Uno.Check hasn't detected any errors.
[Error] Failed to start telemetry host: Unable to find pipe name file: /var/folders/4t/h9r9hqjd6lzf32d4c4m2ht7h0000gn/T/CoreFxPipe_uno-telemetry-35adf575-3dce-4112-aa6f-6f34698c7920

VS Code: errors


 *  Executing task: "dotnet" build "/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10Blank.csproj" -f:net10.0-android -c:Debug -r:android-arm64 -p:EmbedAssembliesIntoApk=true -clp:NoSummary -p:GenerateFullPaths=true -p:UnoForceSingleTFM=true -bl:"/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10.0-android-Debug-android-arm64.binlog" 

    info NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  net10Blank net10.0-android failed with 3 error(s) (10.2s) → bin/Debug/net10.0-android/android-arm64/net10Blank.dll
    MANIFESTMERGER : error LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
    MSBUILD : java error AMM0000: 
      Error: LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
      java.lang.UnsupportedClassVersionError
       com/xamarin/manifestmerger/Main has been compiled by a more recent version of the Java Runtime
       (class file version 61.0), this version of the Java Runtime only recognizes class file version
      s up to 55.0
      
    /usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/36.0.0-rc.1.285/tools/Xamarin.Android.Common.targets(1687,3): error XAAMM0000: 
      Error: LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
        java.lang.UnsupportedClassVersionError: com/xamarin/manifestmerger/Main has been compiled by a
       more recent version of the Java Runtime (class file version 61.0), this version of the Java Ru
      ntime only recognizes class file versions up to 55.0

Build failed with 3 error(s) in 10.9s

 *  The terminal process "/bin/zsh '-l', '-c', '"dotnet" build "/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10Blank.csproj" -f:net10.0-android -c:Debug -r:android-arm64 -p:EmbedAssembliesIntoApk=true -clp:NoSummary -p:GenerateFullPaths=true -p:UnoForceSingleTFM=true -bl:"/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10.0-android-Debug-android-arm64.binlog"'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: "dotnet" build "/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10Blank.csproj" -f:net10.0-android -c:Debug -r:android-arm64 -p:EmbedAssembliesIntoApk=true -clp:NoSummary -p:GenerateFullPaths=true -p:UnoForceSingleTFM=true -bl:"/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10.0-android-Debug-android-arm64.binlog" 

    info NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
  net10Blank net10.0-android failed with 3 error(s) (3.0s) → bin/Debug/net10.0-android/android-arm64/net10Blank.dll
    MANIFESTMERGER : error LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
    MSBUILD : java error AMM0000: 
      Error: LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
      java.lang.UnsupportedClassVersionError
       com/xamarin/manifestmerger/Main has been compiled by a more recent version of the Java Runtime
       (class file version 61.0), this version of the Java Runtime only recognizes class file version
      s up to 55.0
      
    /usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/36.0.0-rc.1.285/tools/Xamarin.Android.Common.targets(1687,3): error XAAMM0000: 
      Error: LinkageError occurred while loading main class com.xamarin.manifestmerger.Main
        java.lang.UnsupportedClassVersionError: com/xamarin/manifestmerger/Main has been compiled by a
       more recent version of the Java Runtime (class file version 61.0), this version of the Java Ru
      ntime only recognizes class file versions up to 55.0

Build failed with 3 error(s) in 3.5s

 *  The terminal process "/bin/zsh '-l', '-c', '"dotnet" build "/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10Blank.csproj" -f:net10.0-android -c:Debug -r:android-arm64 -p:EmbedAssembliesIntoApk=true -clp:NoSummary -p:GenerateFullPaths=true -p:UnoForceSingleTFM=true -bl:"/Users/jhanvi/CliProjects/net10Blank/net10Blank/net10.0-android-Debug-android-arm64.binlog"'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

Expected behavior 🎯

Build should not fail and solution should get deployed on Android.

How to reproduce it (as minimally and precisely as possible) 🔬

  1. Create a Blank/Recommended project with Live Wizard or Template Wizard
  2. Select TFM as Android
  3. Build solution without Debugger
  4. Observe the build errors

Workaround 🛠️

No response

Renderer 🎨

  • Skia
  • Native

Affected platforms 📱💻🖥️

Android

Uno.Sdk version (and other relevant versions) 📦

Nuget Package:
ask/template: 6.3.28
Rider Plugin: 1.7.24
VSC VSIX: 0.22.1

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

No response

Activity

  1. added theissue type on Oct 7, 2025
  2. Cheesebaron commented on Oct 18, 2025

    @Cheesebaron

    JDK 17+ is required for .NET 10.

    Related issue in the dotnet/android repo: dotnet/android#10132

  3. MartinZikmund commented on Oct 22, 2025

    @MartinZikmund
    Member

    This means we will likely need to adjust uno.check to accomodate for this. Transferring the issue to the right place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions