java SDK error when trying to use Android v12.0 Target Framework

KA 76 Reputation points
2022-05-27T10:29:48.27+00:00

Hello,
I am trying to compile my code against Target Framework 12.0 on Android (first image below) but keep getting this error.

Error: Java SDK 11.0 or above is required when using $(TargetFrameworkVersion) v12.0.

I have downloaded and installed jdk18 and pointed Xamarin to it as well but no luck (second image below)

Any ideas how this can be resolved? I have already tried the step provided here but no luck

206156-image.png

206097-image.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,298 questions
{count} votes