0

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!

Andrea Tassera
  • 359
  • 3
  • 17
  • MAUI is still in pre-release and may not be a good option for learning mobile development. – Jason Aug 09 '21 at 00:54
  • Yeah I understand that, but I've seen a few presentations and it looks very interesting so I thought I'd give it a go. I'm reluctant to give up just because I cannot create an Android device. – Andrea Tassera Aug 09 '21 at 01:11

2 Answers2

0

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.

cwancy
  • 1
  • 1
  • 1
  • Yeah Hyper-V and Hypervisor are enabled but still not working... – Andrea Tassera Aug 09 '21 at 01:46
  • Have you tried Android Studio to run your AVD's? That is the only other thing worth trying, to determine whether it is a buggy JDK install etc etc. – cwancy Aug 09 '21 at 01:51
  • Nope I actually haven't. I'm gonna give it a go now. Should I just install and try to create a device? – Andrea Tassera Aug 09 '21 at 01:55
  • Yeah give it a shot, if you get an error creating an AVD in Android Studio, that narrows down the issue and you should be able to pull an error log. – cwancy Aug 09 '21 at 02:35
  • So I managed to create a device with Android Studio and I can start it without issues. Visual Studio still doesn't want to create one though – Andrea Tassera Aug 09 '21 at 02:44
0

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.

Robert Mrobo
  • 119
  • 9