Skip to content

Commit d60d160

Browse files
[Xamarin.Android.Build.Tasks] don't require JDK 11 for build-tools 30 (#5231)
Fixes: #5234 I was building a project and hit: error XA0032: Java SDK 11.0 or above is required when using Android SDK Build-Tools 30.0.2. This is actually not true anymore as of c50df1c. Let's drop this check, and just require JDK 1.8.
1 parent c508cd9 commit d60d160

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#### Application and library build and deployment
2+
3+
* [GitHub Issue 5234](https://github.com/xamarin/xamarin-android/issues/5234):
4+
Fixed *error XA0032: Java SDK 11.0 or above is required when using
5+
Android SDK Build-Tools 30.x.x.* that could occur when building on a
6+
system with the Android SDK `build-tools` 30 or higher installed.

src/Xamarin.Android.Build.Tasks/Tasks/Legacy/ValidateJavaVersion.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ Version GetJavaVersionForBuildTools ()
7676
if (!Version.TryParse (buildToolsVersionString, out buildTools)) {
7777
return Version.Parse (LatestSupportedJavaVersion);
7878
}
79-
if (buildTools >= new Version (30, 0, 0))
80-
return new Version (11, 0);
8179
if (buildTools >= new Version (24, 0, 1))
8280
return new Version (1, 8);
8381
return Version.Parse (MinimumSupportedJavaVersion);

0 commit comments

Comments
 (0)