question

JakobAagesen-6346 avatar image
0 Votes"
JakobAagesen-6346 asked RobCaplan edited

Xamarin Device Manager missing API Level 28

hi
I am continuously running into emulator problems. My project is targeting Android 9.0 (API Level 28 - Pie).
So i want to make a new emulator that supports that version. I tried to make many different emulators with no luck getting it to run, but in this example i have made this emulator:
96366-device-settings.jpg


when i start it, it starts up with a black screen and then terminates again with no error message or anything.
This is the SDK and platform i have installed:
96307-platform.jpg


96348-sdk-tool.jpg

I am running Visual studio 2019 community edition on a windows 10 Home edition.
I am not trying to start the emulator via the debugger in Visual Studio. It is only the emulator i am starting directly from Xamaring Android Device Manager.
I cannot figure you why it stops. i have had an emulator running before, so it's not because my pc cant handle emulators. Can somebody help me out here?


dotnet-xamarin
device-settings.jpg (85.7 KiB)
platform.jpg (86.8 KiB)
sdk-tool.jpg (101.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT commented

Hello,​

Welcome to our Microsoft Q&A platform!

Based on your description, I think you do not enable the Hardware acceleration for emulator, you can refer to the following link to enable the Accelerating with Hyper-V or HAXM

https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows

Best Regards,

Leon Lu



If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you for the reply. I went through the article and because i am using Windows home edition, i don't have the Hyper-V option to install.
I also don't have the "Device Guard Virtualization based security".
I found these lines in in one of the logs:

[2021-05-13 14:01:17.3] DEBUG: Detecting component Intel x86 Emulator Accelerator (HAXM installer) r7.6.5 [Extra: (Intel Corporation)] in directory 'C:\Program Files (x86)\Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager'
[2021-05-13 14:01:17.3] DEBUG: Found revision 7.6.5 on the system

I have enabled virtualization in the BIOS.

The emulator has been working before but for some unknown reason it doesn't work now.
Can this be about the fact that my machine is a windows Home edition and newer emulator can't run on that?



0 Votes 0 ·

Can this be about the fact that my machine is a windows Home edition and newer emulator can't run on that?

Based on my research, the answer is no, you can download.

Please create a new emluator, if you have this issue? If you still have this issue, please install android studio, create an emulator in AS, if it runing normally.

0 Votes 0 ·
JakobAagesen-6346 avatar image
0 Votes"
JakobAagesen-6346 answered

hi again
thank you, Appreciate your reply.
I have now tried to install Android Studio and created an emulator from that. This gave same result as with Visual Studio. I am unable to create an emulator that will start up correctly.
This is very weird, because i have run emulators on my pc with Visual studio and Xamarin Android device manager.
Any suggestions, what the next step should be for me to solve my problem?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.