Unable to Launch Xamarin Android Player - xamarin

I am getting the following error when I try to launch Xamarin Android Player.
I have tried reducing the allocated memory in Virtual Box, as suggested in some other forums but no results.
I am using Virtual Box V5.0.4.
Kindly guide on resolving the issue.
The Android is working in Virtual Box when I change
Settings>Network>Adapter1>Attached to
to NAT by going into the in virtual box but as I launch the Xamarin Android Player or GenyMotion. it resets it to Host-Only Adapter and the emulator stops working.

Check if you have Virtualization Enabled in your BIOS settings.
Another workaround:
Uninstall previous versions of XAP.
Open up VirtualBox and remove all of the XAP devices, choose to delete files.
Open the VirtualBox Virtual Media Manager and ensure there are no data.vdi, system.vdi or sdcard.vdi files remaining. If there are,
release and remove them.
Delete C:\ProgramData\AndroidPlayer
Source: https://bugzilla.xamarin.com/show_bug.cgi?id=24817

I would update virtual box to 5.0.20 from here try it again.
If that doesn't work then try reinstalling Xamarin Android Player.
If that doesn't work then I would recommend trying GenyMotion
Check this forum post too
They say this:
I solved this issue by reducing the RAM Value in Virtual Box.
Go to Virtual Box
Select Your Device
Go to settings -> System -> Motherboard.
Reduce Base Memory.
Or this might help:
Try starting the emulator in VirtualBox. It will give you a specific error, which you can then google for more info.
In my case, the issue was VERR_INTNET_FLT_IF_NOT_FOUND, and the solution was here
solution https://www.virtualbox.org/ticket/14604#comment:1

Related

AVD virtual device Pixel3a API 32 process gets terminted repeatedly and if somehow the device open, it stay frozen idle

I am having problem with Android Studio where my Andrdoid virtual device gets terminated for no clear reason!
I tried searching all over internet and Stackoverflow but nothing seemed to work for me.
Tried everything from installing just SDK, Buildtools, Envoirnment-variables, to completely deleting and reinstalling android studio but issue persists. Ps it's not space issue as i have plently available
Solution
it's temporary fix but works!
open Android Virtual Device manager.
click 3dots(located right after the pencil)
click show on device
delete the cache file. (there will be file named cache)
There will be file named config.ini, (open it and change hw.ramSize=3068 hw.cpu.ncore=1 ) cores and ram
you can also change ram and cores from that pencil and going to advanced.
after that do a cold start and wait patiently!! it will load up after a while! it works ....
i just did it.. but i have to do it everytime...๐Ÿ˜’

Visual Studio 2019 Xamarin Forms android emulator failing with message System UI isn't responding

Getting an error message, 'System UI isn't responding.' and it gives me the options 'Close app' or 'Wait' when debugging Xamarin.Forms. This is on the emulator that launches. I have set the memory at 512 and the resolution at 800x600 as some have suggested in other threads. I also did a 'factory reset.' Nothing has helped so far.
Are there any other options that may get me past this? I just purchased a Xamarin class from Udemy and can't even get past the first few videos.
I should mention that I do not think I am short on resources. I have two 500 GB SSD drives and the following memory and processor specs.
First of all, please make sure your have enabled the Hardware acceleration for emulator, https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows
If you enabled it, please delete this emulator, create a emulator like this screenshot.
https://imgur.com/a/ZyBakKc
I resolved this issue by going to Tools in Visual Studio. Tools > Android > Android Device Manager > select and edit property (hw.gpu.mode) of emulator to mesa

Not able to add External Virtual Switch in Hyper-V to connect Android Emulator to Network

I am using Hyper-V to run Visual Studio emulator for android to test Xamarin android app. But emulator is not able to connect to database machine (for making database calls) on same network whereas my computer can access that database.
I have searched a lot on internet but no luck. Even I am not able to add new External Virtual Switch in hyper-v. In my network setting I can see 2 network adapters. One is my physical adapter(Ethernet) to which my computer is connected using LAN cable (Realtek PCIe GBE Family Controller) and second one is vEthernet connected using (Hyper-V Virtual Ethernet Adapter).
Below is the screen shot of hyper-v setting pane of my kit-kat emulator.
It is showing only one switch (window phone emulator switch) not the Realtek Pci Switch. Also I am not able to add a new switch (external switch in hyper-v ) here. Button remains disabled.
Please help me to sort out this. Thanks
I figured out the solution while reading an article for this. For External switch to be added for Hyper-V, we must have Hyper-V Extensible Virtual Switch in our network adapter settings as shown below:
If it is not present then you can add it from install button. It will open a popup window, select Protocol there as shown below.
Once it is added, now you will see External Switch option will be enabled in Hyper-V.

I cannot click capture button to capture virtual machine image

I cannot click Capture (2nd last button "์บก์ฒ˜" in Korean) button in Azure portal.
All other virtual machines are same to this situation.
Yesterday, I captured image by clicking that button, but today I cannot click it.
Could you let me know why this happens and how I can solve this problem???
One more question!
this is error log
Provisioning failed. OS Provisioning for VM 'master0' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it properly for use as an image:
* Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
* Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/. OSProvisioningTimedOut
I use a Linux machine
1.You need stop your VM firstly. Stop the VM by usgin Azure Portal.
2.Create your VM image on Azure Portal.
3.Create new VMs by using the image.
Also, you could use PowerShell to capture image, more information please refer to this link.

blank window when installing visual studio on windows 10

I have a Windows 10 64-bit PC (fresh install, not an upgrade).
When I run the setup file (web or offline alike) in order to install Visual Studio (2013 or 2015, Community edition), all I get is a small black rectangle on the screen (which I later found out that this is actually the title of the setup popup window), without the actual window of the installation.
I have tried it also after a reboot, and with various "versions" of the installation files (web, iso, standalone), but it's always the same situation.
What can I do about it? VS is my main development tool and I really need it on this computer as soon as possible.
Similar problem here. Program install ok but display blank screen after launched.
Problem solved when I changed my Nvidia graphics's global 3D setting to integrated graphics.
Right click desktop
Select Nvidia Control Panel
Select Manage 3D Settings
Under preferred graphics processor, select integrated graphics.
Apply.
If you are using a laptop with an external monitor, try unplugging it and using your primary monitor to launch. This worked for me. Laptops often have dual graphics cards and I believe we're hitting some issue with the way the Installer for VS was written (likely WPF)
Once I launced it and started the installation, I could safely plug my monitor in and it kept working properly.
I'm using an AMD GPU, It was a blank white screen but when I hover the mouse over it, I can see the text events
By the way
I went to my AMD Radeon Settings and saw that vs_installershell.exe and vs_setup_bootstrapper.exe were added automatically to the Switchable Graphics list
they were with Not Assigned Option which usually is like High Performace Option
means It would run it with my ATI GPU.
So I clicked on them
Selected Power Saving Option (to work with my Intel GPU)
Which worked and I can see the window of visual studio installer back
after restarting visual studio installer for sure.
whether is your graphics card, just turn on power saving for it.
Had the same issue. Since this topic is not accept any answare, there is one from https://developercommunity.visualstudio.com/content/problem/150888/visual-studio-installer-shows-blank-screen.html
Try to open installer as Admin.
You will probably have blank screen. Do not close it!
Open installer once more.
Hope it help other people with same issue.
the same thing happened to me, i didn't do anything i just waited for it and it started showing it's status, i suggest you close other running programs to avoid conflicts and performance hindering, and try it again.
This seems like a very shoddy issue. I've run into this problem too, and I tested all solutions that I came across online. These all work:
Running the installer as administrator, which is a blank screen. Leave it open and run a second instance of the installer, which will not be blank (doesn't need to be run as administrator the second time.
Changing screen settings so that the laptop screen is not being used.
Downloading the AMD Settings application, and setting vs_installershell.exe to run on powersaving mode. Restart the installer after saving the settings.
Use a default graphics driver instead of the AMD one.
I had the the same problem in my laptop. The temporary solution is: start the installer only without the battery, if installer starts you can connect the cable, it works fine.
I had to run integrated graphics rather than my Nvdia. That solved it for me.
Remember to change it back when programming in OpenGL and DirectX otherwise you may get a list of messages staying that nothing works.
I had the the same problem in my laptop. The work around is, in device management, remove the amd graphics or start the installer only with battery.

Resources