Skip to content

Conversation

jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Oct 20, 2020

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 since we got c50df1c and other
changes in to redistribute apksigner.jar. Let's drop this check, and
just require JDK 1.8.

I'm not actually sure how others haven't run into this?

@jonpryor
Copy link
Contributor

Everything looks good, though do wonder about the Designer integration test failure. "Random", or did we break something, or is it an "upstream" bug?

I've restarted those tests, so we can possibly eliminate "random"…

@jonathanpeppers
Copy link
Member Author

When I click on the first instance of the designer test failing, it seems like it happened on one of Radek's PRs that isn't merged. I think they probably have a test failing on xamarin/uitools/master.

image

@jonathanpeppers
Copy link
Member Author

jonathanpeppers commented Oct 22, 2020

Since #5234 came in, let me add a release note for it.

Fixes: dotnet#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 since we got c50df1c and other
changes in to redistribute `apksigner.jar`. Let's drop this check, and
just require JDK 1.8.
if (!Version.TryParse (buildToolsVersionString, out buildTools)) {
return Version.Parse (LatestSupportedJavaVersion);
}
if (buildTools >= new Version (30, 0, 0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It occurs to me that instead of removing this check entirely, we should instead be "more accurate". We know Build-tools 30.0.0 and 30.0.1 require JDK 11, it's 30.0.2 (and later?) that work with JDK 8. Thus, should we check for what we know?

if (buildTools >= new Version (30, 0, 0) && buildTools < new Version (30, 0 2)) {
    return new Version (11, 0);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we redistribute apksigner.jar now, both 30.0.0 and 30.0.1 will work.

@jonpryor jonpryor merged commit d60d160 into dotnet:master Oct 22, 2020
@jonathanpeppers jonathanpeppers deleted the build-tools-30-jdk-11 branch October 22, 2020 16:35
@brendanzagaeski brendanzagaeski added the bug Component does not function as intended. label Nov 20, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Component does not function as intended.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AndroidSdkBuildToolsVersion 30+ and Java 11 inconsistency

4 participants