title: Java SDK 11.0 or above is required when using .NET 6 or higher
body: <p>I've installed .NET 6 (version <em>6.0.100-rc.1.21458.32</em>) and Visual Studio 2020 Preview (although it might be not a prerequisite).</p>
  <p>I am trying to debug a hello-world application but I am getting a <strong>build error regarding  Java</strong>.</p>
  <pre><code>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.100-rc.1.12\targets\Microsoft.Android.Sdk.Tooling.targets(20,5): error XA0031: 
  Java SDK 11.0 or above is required when using .NET 6 or higher. 
  </code></pre>
  <p>I've installed Java 17 setting <code>Path</code> as well as pointing to the Java Development Kit Location in Visual Studio settings (tools-&gt;options-&gt;Xamarin-&gt;Android Settings). Because that didn't work I've set the JDK location to Microsoft's openjdk, but it still doesn't work.</p>
  <p><a href="https://i.stack.imgur.com/dNfnN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dNfnN.png" alt="enter image description here" /></a></p>
  <p>What's wrong here?</p>