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

Developer technologies .NET Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.