2

I made a new Xamarin Project in Visual Studio , I chose the Single View App .

  • Then I did not make any changes.

  • I just pressed the Run Button.

  • The emulator started ,

  • but the app was not appeared in the menu of the phone of the emulator.

Is there anyone who know what cause the problem?

  • First, check you app. Use another device to confirm the project works well or not. If the app works well, you could try to deploy the projct to the emulator. Does the app appear or not? – Wendy Zang - MSFT Sep 09 '20 at 08:27
  • Please add more details to the question. This can happen for multiple reasons. What do you get in the output window for build? Is build successful ? Is deployment successful? Are there any error dialog windows shown? – Xid Sep 09 '20 at 11:55

3 Answers3

1

On Windows you have a couple of options to accelerate the Emulator. Read more here: https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows

Using HyperV: Make sure to install the Windows Hypervisor Platform:

  1. Right click on the Windows button and select ‘Apps and Features’.
  2. Select Programs and Features on the right under related settings.
  3. Select Turn Windows Features on or off.
  4. Select Hyper-V and click OK.

You probably need to restart your computer after.

Intel HAXM: If you are not using HyperV and don't intend and don't run other hypervisors such as VMWare, VirtualBox etc. then you can install Intel HAXM.

In the Android SDK manager, in tools, download Intel HAXM. After that is done, go to the folder where the Android SDK is installed. There should be an extras folder where there will be an installer for Intel HAXM.

On macOS, Intel HAXM is the way to go. Read how to install it here: https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=macos

Should be as easy as running sh ~/Library/Developer/Xamarin/android-sdk-macosx/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh from a command-line.

Either of these approaches should significantly speed up the Android Emulator.

If you have issues deloying to the emulator, sometimes the default configurations have very limited space and installing anything may fail due to the emulator running out of storage. Go to the Android AVD and increase the internal storage size.

For other failures, check the Deploy Output window in Visual Studio and provide more information of what is going wrong. Otherwise it is just a guess.

Cheesebaron
  • 24,131
  • 15
  • 66
  • 118
0

This might be just a bug. Create a new project. If still blank wait 5 minutes. Maybe your computer is slow so it takes time to load.

ItsRaptorman
  • 101
  • 8
  • 1
    My computer is a tech beast with the last Intel CPU and one of the best NVIDIA graphic card, it is not from the computer's speed –  Sep 09 '20 at 06:51
0

If you start using xamarin for the first time

  1. Create device from dropout menu (don't just let it create it from pressing run button).
  2. Select device from dropout menu.
  3. Run up.

if it didn't added just restart Visual Studio (should change "Run" into name of the device)

retro_m
  • 1
  • 1