I'm new to MAUI so I followed the instructions on Microsoft's Build Your First App page. I ran the Android emulator and everything worked fine.
I then followed this page to build a flashlight app, but when I ran it, the emulator started fine, but the app never loaded.
In the output window in Visual Studio, I saw this:
[mono] debugger-agent: Unable to connect to 10.0.2.2:54762
I created a brand new .NET MAUI app, made no changes and ran that, same result.
I followed the deployment issues section on this page to no avail.
Also, when I ran sdkmanager --update
, I got the following output:
[=== ] 10% Computing updates...
Updating:
platform-tools
emulator
Warning: Failed to read or create install properties file.
[=== ] 10% Installing Android Emulator
where it's saying it failed to read/install the properties file.
I also tried Razwill-1930's answer on this page, again, to no avail.
I'm running .NET 6 in Visual Studio 17.3.5 on Windows 11 Pro.
What am I doing wrong?
I downloaded another emulator and that one works fine, which for my purposes, I'm OK with not being able to use the Pixel 6 emulator that gets installed with the .NET MAUI workload in VS. How can I get it going?
I ended up deleting the emulator (Pixel 5 - API 31) and then reinstalling it. That worked. Not sure why that worked, the Android Device Manager didn't re-download the files. Hey, banging the TV sometimes works too.