question

Sna1l1-9188 avatar image
0 Votes"
Sna1l1-9188 asked ·

Xamarin android emulator black screen/Can`t run blank project

All in title. At the first: Hyper-v is enable, processor - amd, i dont have HAXM.

What i`m tried:

Set Release mode and in advanced settings enable x86 architacture.
No errors in logs, i just tilted and cant start developing on Xamarin.

I`m also tried to lauch my app (this is default blank xamarin project, i didnt changed anything) on my mobile device using debugging in developer options. All components are installed and apk on my device too. But when i trying to open app, the application opens for 1 second and immediately closes. I just dont know what to do.

Visual studio 2019, AMD Phenom x955

dotnet-csharpdotnet-xamarinformsvs-debugging
10 |1000 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.

vb2ae avatar image
0 Votes"
vb2ae answered ·

Did you install the Android Emulator and the Android Emulator driver for Hypervisor in the android sdk manager tools tab?

57368-droid-sdk.png


If it still wont start try doing a factor reset on the emulator by right clicking on emulator and selecting factory reset

57210-emulators.png



droid-sdk.png (213.1 KiB)
emulators.png (85.7 KiB)
· 2 · Share
10 |1000 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.

All of this i already done. Nothing help

0 Votes 0 ·

is the android emulator image set to use an x86 processor.

0 Votes 0 ·
DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered ·

Hi Sna1l1,

Please try to enable "Migrate to a physical computer with a different processor" for the emulator.

  1. Click Start, point to Administrative Tools, and then click Hyper-V Manager.

  2. Select the server running Hyper-V and the desired virtual machine.

  3. If the virtual machine is running, you must shut down the virtual machine to change the processor compatibility mode setting.

  4. In the Action pane, click Settings, and then click Processor.

  5. Expand Processor, and click Compatibility.

  6. Click "Migrate to a physical computer with a different processor", and then click OK.

Best Regards,
Dylan


If the answer 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.

· 1 · Share
10 |1000 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.

I have no active servers in hyper-v manager

0 Votes 0 ·