Skip to content

Generate error when JDK 9 is used. #1248

Closed

Description

@jonpryor

JDK 9 doesn't currently provide a robust and reliable user experience. Until we can provide a reliable experience, we should "fail early".

Steps to Reproduce

  1. Setup your machine so that only JDK 9 is available.
  2. Build a Xamarin.Android project

Expected Behavior

We should generate an error:

XA0030: Building with JDK 9 is not supported. Please install JDK 1.8: https://aka.ms/xamarin/jdk9-errors

Actual Behavior

We may or may not generate some "rando" failure somewhere else in the build or packaging process, which will result in my losing more of my hair.

MSBuild Property Control

For our own internal use, we'll want a way to disable the test. I propose making $(LatestSupportedJavaVersion) Conditional, and only emit the error if the JDK version is > $(LatestSupportedJavaVersion). This would allow one-off testing by setting that property on the command-line:

msbuild /p:LatestSupportedJavaVersion=9.0.0 /t:SignAndroidPackage TheApp.csproj

Activity

  1. added this to the d15-6 milestone on Jan 30, 2018
  2. added
    Area: App+Library Build
    on Jan 30, 2018
  3. added a commit that references this issue on Jan 30, 2018
    aca89d9
  4. ghost locked as resolved and limited conversation to collaborators on Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: App+Library Build

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions