0

Android Device Manager prevents me from creating an Android Device because of an incompatible JDK. However, maui-check shows me that i've got OpenJDK 11.0 installed.

Image of error message and maui-check.

Image of device I'm trying to create.

I've tried the "Install and configure Microsoft Mobile OpenJDK" but going through that it just shows me that everything is installed correctly.

Image of JDK install confirmation.

What exactly am I missing here, do I have to install a previous version of the JDK?

HallowedFlux
  • 100
  • 2
  • 10
  • 1
    Could you check the Visual Studio Installer under the Individual Components tab, then Emulators if the Google Android Emulator (API Level 25) (local install) checkbox is checked? – Gerald Versluis Jul 29 '21 at 10:28
  • @GeraldVersluis It wasn't checked yet, I checked it, installed it, but it still shows the same problem, do I have to configure it somewhere? Could it be because I'm using Visual Studio 2022 Preview? – HallowedFlux Jul 29 '21 at 12:02
  • Welp, Tried making a device starting the device manager from visual studio 2019, that seemed to work instantly. I guess vs2022 preview isn't done far enough for that yet, thanks for the help though! – HallowedFlux Jul 29 '21 at 13:17
  • Weird! Should work just as well for VS2022, it does for me.. Glad you figured something out though! – Gerald Versluis Jul 29 '21 at 13:26

1 Answers1

3

Download OpenJDK 8.0.41 from here

Unzipped files in Program Files > JDK > OpenJDK_8.0.41

Update JDK location in Visual Studio 2022, go to Tools > Xamarin > set above folder path in Java Development Kit Location

Original solution

hadayago
  • 61
  • 1
  • 6