Repository navigation
[release/11.0.1xx] [Build.Tasks] Use SDK-defined Java version requirements - #13743
Merged
jonathanpeppers merged 1 commit intoNov 24, 2026
Merged
Conversation
The .NET for Android SDK configures a supported JDK range, currently `21.0` through `25.0.99`. `Xamarin.Android.Tasks.ValidateJavaVersion` instead lowered the minimum to JDK 11 whenever the Android API level was 31 or later. This allowed explicitly selected JDK 11/17 installations despite the SDK's configured minimum. Honor `$(MinimumSupportedJavaVersion)` and `$(LatestSupportedJavaVersion)` directly, without hardcoding versions in the validator. Remove the unused legacy validator and its framework/build-tools heuristics, along with the modern validator's unused `TargetPlatformVersion` input. Preserve the corresponding input on `<ResolveAndroidTooling/>`. Migrate the two Java-validation fixtures to the modern task. Cover JDK 11/17 rejection, JDK 21/25 acceptance, JDK 26 rejection, exact range boundaries, release-file detection, and separate `java`/`javac` process validation. Keep fake release files inside each fake JDK and use absolute fake Java executable paths so reruns do not contaminate other tests. Remove only the obsolete English XA0031/XA0032 resources, retaining XA0031_NET and all localized files. Document the SDK-defined minimum and preserve XA0032's historical documentation link. This is an independent correctness/legacy-cleanup change; it does not include SDK-state, nested-build, cache, or concurrency refactors. No associated issue. Co-authored-by: Copilot App <[email protected]>
github-actions
Bot
requested review from
jonathanpeppers and
simonrozsival
as code owners
November 23, 2026 21:51
jonathanpeppers
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #13133 to release/11.0.1xx
/cc @jonathanpeppers