Repository navigation
Closed
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.need-infoIssues that need more information from the author.
Milestone
Description
Android framework version
net10.0-android (Preview)
Affected platform version
10.0.100-preview.3.25201.16
Description
Try to build Android hello world application with .NET preview3 fails to build.
Steps to Reproduce
dotnet new android
dotnet build
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.manifest
merger.Main
java.lang.UnsupportedClassVersionError
com/xamarin/manifestmerger/Main has been compiled by a more recent versio
n of the Java Runtime (class file version 61.0), this version of the Java
Runtime only recognizes class file versions up to 55.0
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/35.99.0-preview.1.140/tools/Xamarin.Android.Common.targets(1561,3): error XAAMM0000:
Error: LinkageError occurred while loading main class com.xamarin.manifest
merger.Main
java.lang.UnsupportedClassVersionError: com/xamarin/manifestmerger/Main h
as 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
versions up to 55.0
Did you find any workaround?
Use .NET 9
Relevant log output
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.manifest
merger.Main
java.lang.UnsupportedClassVersionError
com/xamarin/manifestmerger/Main has been compiled by a more recent versio
n of the Java Runtime (class file version 61.0), this version of the Java
Runtime only recognizes class file versions up to 55.0
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/35.99.0-preview.1.140/tools/Xamarin.Android.Common.targets(1561,3): error XAAMM0000:
Error: LinkageError occurred while loading main class com.xamarin.manifest
merger.Main
java.lang.UnsupportedClassVersionError: com/xamarin/manifestmerger/Main h
as 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
versions up to 55.0Metadata
Metadata
Assignees
Labels
Area: App+Library BuildIssues when building Library projects or Application projects.need-infoIssues that need more information from the author.
Activity
jonathanpeppers commentedon May 12, 2025
This error message is saying you need to use JDK 11:
But I think we've required JDK 11 even in .NET 8 (let alone .NET 10).
To get on the recommended JDK, if you install JDK 17, does the problem go away?
dotnet-policy-service commentedon May 12, 2025
Hi @@viniciusjarina. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
viniciusjarina commentedon May 12, 2025
@jonathanpeppers indeed Installing JDK 17 fix the problem. Thank you 🥳