Skip to content

Commit ed5ad12

Browse files
[One .NET] bump $(MinimumSupportedJavaVersion) to 11.0 (#6228)
Since e722825, API 31 is stable -- builds now requires JDK 11. Unfortunately, if you build an app right now you hit: > dotnet new android ; dotnet build ... error XA0031: Java SDK 11.0 or above is required when using .NET 6 or higher. You can fix the problem by passing `$(MinimumSupportedJavaVersion)`: dotnet build -p:MinimumSupportedJavaVersion=11.0.0 Let's make `$(MinimumSupportedJavaVersion)` default to `11.0` going forward in .NET 6 to solve this issue.
1 parent b99680d commit ed5ad12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- User-facing configuration-agnostic defaults -->
44
<PropertyGroup>
5-
<MinimumSupportedJavaVersion Condition=" '$(MinimumSupportedJavaVersion)' == '' ">1.8.0</MinimumSupportedJavaVersion>
5+
<MinimumSupportedJavaVersion Condition=" '$(MinimumSupportedJavaVersion)' == '' ">11.0</MinimumSupportedJavaVersion>
66
<AndroidBoundExceptionType Condition=" '$(AndroidBoundExceptionType)' == '' ">System</AndroidBoundExceptionType>
77
<MonoAndroidResourcePrefix Condition=" '$(MonoAndroidResourcePrefix)' == '' ">Resources</MonoAndroidResourcePrefix>
88
<MonoAndroidAssetsPrefix Condition=" '$(MonoAndroidAssetsPrefix)' == '' ">Assets</MonoAndroidAssetsPrefix>

0 commit comments

Comments
 (0)