xamarin android player failed to initialize device vboxmanag - xamarin-android-player

I have recently installed a xamarin android player for developing android application but after the complete installation when i open a xamarin android player it will throw a following error...
****xamarin android player failed to initialize device vboxmanag****
Can anyone help me or tell me what can I do.

I am running Windows 10 Pro and use Oracle VBox v.5.0.4.
if your case same with me : first, you need to uninstall the current version of Oracle VBox then install the new version that already support Windows 10. i use v. 5.1. You can download it here
then, just try to re-launch the emulator.

I found some info by Googling around that may help starting a device in the Android Player. I have Vers 0.6.5 of the player.
Open VirtualBox directly as suggested by Cook Data. You will get the REAL error message which may related to vt-ix....
Make sure that the the bios has enabled the virtual technology aka vt-ix. Just do a reboot and you should find it in he bios setup - maybe under advanced. AMD and INTEL have slightly different names for it.
Reduce the system memory for the device you wish to start to 1024 Mb if it is currently 2048 Mb
I also got a warning about video memory which I increased to 10Mb from 8Mb
My setup runs over Hyper-V which has its own foibles so YMMV and I only started on this stuff today...

For Windows 10 users
(After Bios Virtualization enabled)
Use VirtualBox 5.1.14
https://www.virtualbox.org/wiki/Downloads

Related

Runtime Exception in windows build

I am able to generate & install windows phone build in my Microsoft Lumia 640. Its running on Windows OS 8.1.
But as soon as I run application generated by CN1 build server, it gives error
An internal application error occurred: java.lang.RuntimeException Unsupported operation as per below screen shot.
For a testing purpose I created new CN1 Project and without changing any code / theme.res I just sent windows phone build and it ended up with the same error.
Unfortunately I didnt get any log output from windows phone, as it doesnt support Logcat like Android. Also I tried to grab Isolated Storage by WP Power Tools but there was nothing in it.
Anyone faced / facing this in Codename One windows phone build ?
The Windows Phone port is the least mature of the Codename One ports having gone thru 3 rewrites due to changes from Microsoft.
We are now debating the 4th rewrite, in the meantime some community members did their own port which should be more complete:
https://github.com/Pmovil/CN1WindowsPort
So as the short answer I suggest using that. For an explanation on how we got here read on.
The reason we didn't already start with the 4th port was Microsofts project astoria that they suddenly (might have) canceled. We were relying on this project for future Windows Phone support but now that its status is unclear we are in a bind.
We also have the JavaScript port & the Windows desktop port as options for targeting windows phone alleviating some of the problem.
If MS cancels the project for good we'll dedicate the resources for a complete rewrite of the port, but that will take time. However, we don't want to start off on such a huge effort and suddenly be faced with a huge shortcut of Android compatibility.

WP8 emulator on Vmware player not running

I have created a vmware of windows 8.1 in order to develop a wp8 app.
My pc specs :
i7 2670 (2.2)
8 gb ram
win 7 64
My VMware Player spec:
60 gb hdd
4 gb ram
I have installed in the VMware Player visual studio 2012 update 4, and all the wp stuff.
When i am trying to build my project i am getting this error:
emulator Cannot assign the specified number
of processor for virtual machine is out of range
I have searched on the internet but all links i have found refereed to parallels. Nothing helpful for VMware .
I have read this article. I have enabled hyper-v, but i am not sure if VMware can support hardware virtualization, which i think is needed.
My question are 2:
Is these any possible solution to this problem?
If i got a device and try to debug on device i suppose that i will not have any problem. Am i suppose well?
I will appreciate any help.
Thx for your time.
VMWare Player v6. You need to tick Virtualize Intel VT-x/EPT or AMD-V/RIV in virtual machine configuration for WP emulator running.
As per the comments on your question, I'll explain:
You can perform Windows Phone 8.x development on Windows 7 or later provided you have a physical device, however if you want to use the Windows Phone 8.x emulators then you need to have Hyper-V available, this is because the WP8 emulators run as Hyper-V virtual-machines, side-by-side with your main operating system.
Therefore, to use the WP8 emulators you must be running Windows 8 Pro, Windows 8 Enterprise or Windows Server 2012 (or later, e.g. Windows 8.1 Pro). The standard "Home edition" of Windows 8 does not include Hyper-V. Read up about Client Hyper-V on TechNet.
Hyper-V requires hardware virtualisation and, as an accelerated platform with hardware requirements, will not run within another virtualiser (this is in contrast to how you can run VirtualBox or VirtualPC under Hyper-V). You must be running Windows 8 Pro as your "root" operating system.
You actually also need to edit the .vmx file in VMWare Player in order for Hyper-V to be available to the Windows Phone emulator.
Give your VM >= 4GB RAM, 2+ processors, then open the .vmx file for the VM and add:
hypervisor.cpuid.v0 = “FALSE”
Then save, start the VM, and install Windows.
I'll also point out that this works flawlessly on my MacBook Pro Retina running a Hyper-V capable Windows distribution inside of Parallels and Visual Studio 2013 CE.

"Not enough memory..." error when attempting to start windows phone emulator

I actually got this error (image below) sometimes (not always), which means my hardware is fine (?).
Everytime I got this error I tried a walk around by starting the VM inside HyperV Manager (After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error).
But now, even when I started it, it still didn't work (image below).
The errors occurred when I started using Application Deployment to test a xap file in WVGA (not WVGA 512 MB) emulator, the emulator didn't start and after that whatever version of Emulator I tried, the same error appeared.
I tried deleting all the VMs in VM Manager and then started VS and run the emulator again but it still didn't work. I also restarted windows but the problem remained unsolved. I'm using VS2012 and Windows 8.1.
The primary reason behind this is that your machine doesn't have enough available memory for the VM to launch.
Here is a KB article that was recently posted to get around this by setting a registry key that limits the amount of memory available to the host machine.
http://support.microsoft.com/kb/2911380/en-us
I have used the above fix and it worked for me.
This message is telling you that you have insufficient memory on your PC to start this virtual machine.
Try closing down other applications (such as Visual Studio, any Office apps etc), then starting the emulator in Hyper-V manager. Then you can restart Visual Studio etc.
I've noticed this seems to happen to me more often under Windows 8.1 than I remember happening under Windows 8 on a 4GB RAM laptop.

After upgrading to Windows 8.1, unable to run Windows Phone emulator without memory error

After I updated my Samsung Series 9 SSD laptop with 8GB of RAM to Windows 8.1, (not even a year old, and top-of-line when purchased last november), I am now unable to run the Windows Phone emulator while debugging my WP8 app.
The error messages I see is:
"Not enough memory in the system to start the virtual machine emulator
WVGA 512MB.user with ram size 512 megabytes"
Well, the instant I attempt to run a build, it the machine immediately goes from 25% memory consumed to 80% consumed. Even after I close Visual Studio Express 2012, still it is stuck at 80% memory consumption according to the task manager. At this point, I am unable to run the Windows Phone emulator to test my app.
How can I work around this issue without replacing my hardware?
Thanks!
Microsoft has now posted a KB article with information about how to edit the registry to correct this:
Start Registry Editor.
Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Virtualization
Right-click the Virtualization
folder, point to New, and then click DWORD Value.
Type MemoryReserve, and then press Enter.
Double-click MemoryReserve,
enter 2048 in the Value data box, select the Decimal option, and
then click OK.
Close Registry Editor.
I can't post comments yet but I wanted to confirm being able to start the emulator after starting the Hyper-V Manager. I was getting memory errors trying to launch the emulator; I started the emulator via the Hyper-V Manager and was able to launch it from VS2013.
Closing down some applications (eg SQL Server) did the trick for me.

Install Win 8.1 and VS 2013 on virtual machine for Win mobile development

On my laptop I have installed Win 7 and VS 2012.But I need to get ready for the Microsoft exam for the "windows store apps using HTML 5, css and javascript". So my idea is to install Win 8.1 and VS 2013 trial versions for get hands on practice for above exams.So my question is can I install Win 8.1 and VS 2013 trial versions on my Laptop without removing the current Win 7 and VS 2012 (Maybe a virtual machine or something like that)?If you know how to achieve above goal please let me know.
In short my whole idea is to get practice for developing Win 8 apps for mobile. If you have other suggestions without installing the above software, please let me know also.
Windows Phone App Development requires Hyper-V & SLAT to run the emulator. That requires your host OS to be at least Windows 8 or better. On a virtual machine you will be able to develop apps, but you won't be able to run them on the emulator.
You can run Visual Studio 2012 and 2013 side by side, but then you would have to upgrade the host machine to Windows 8 Pro.
When both your laptop and your virtualization software support the required CPU features, it is also possible to run the emulator on top of Windows 7.
For more information see this link on the Nokia Developer Portal (Thanks for adding that GSerg!)
General answer (jessehouwing's answer is more accurate):
If your notebook has enough main memory, CPU power, etc. and the CPU ideally supports certain virtualization features, then you should be able to install Windows 8 inside a virtual machine.
To give you an idea how simple this could be, here's an example:
install VirtualBox
start it and set up a virtual machine with the proper CPU and OS settings
define a virtual hard disk that's large enough (this will end up being a file inside your current OS, no need to repartition your real hard disk drive)
get your Windows installation medium ready (a CD or ISO file will do)
point your VM's virtual CD drive to that installation medium
start the virtual machine and install Windows inside it