Visual Studio Failing to Create New Android Device

1.2k Views Asked by At

I'm new to mobile development and I wanted to have a go with MAUI to start learning a bit. I followed all the instructions and I ran maui-check which says everything's fine, apart not finding any android emulator. Here's the result: enter image description here

I then went to Visual Studio (both 2019 and 2022) trying to create a new Android device (following the instructions here) to see if then my HelloMaui project was debugging, but that's where I'm hitting a snag.

I set up all needed packages in the Android SDK Manager and I think that's looking good: enter image description here enter image description here

But then when I try to create a new Android device through the Android Device Manager I always get this error: enter image description here

This is my JDK location though: enter image description here

Can anyone help? What am I doing wrong?

Thanks!

2

There are 2 best solutions below

5
cwancy On

Just to make sure, is Hypervisor Support enabled on Intel, or SVN enabled on AMD? I had an issue very similar to this, and that is all it was.

0
Robert Mrobo On

I had the very same problem, I solved it by installing the JDK I downloaded from the Oracle Website.

After installing it, Open Visual Studio, Tools > Options > Xamarin > Android Settings > Java Development Kit Location: change the location to C:\Program Files\Java[The version of JDK you just installed, jdk1.8.0_301 in my case].

From there all went well for me.