Xamarin Android Player Error when attempting to find VirtualBox - xamarin

I have a clean install of Windows 10. After installing Visual Studio 2015 and Xamarin Bussiness edition I installed Xamarin Android Player x64 and now I receive the following error:
Error when attempting to find VirtualBox please check it's installed and try again.
Xamarin Android Player will now exit.
A solution is referenced in Xamarin fourms stating
Fixed it by adding "C:\Program Files\Oracle\VirtualBox" to my %PATH%
I am able to open VirtualBox version 4.3.28 r 100309 without issue.
How do I implment this solution or is there a newer solution?

I am running Windows 10 Professional and did a clean installation. Had the same problem. I opened the environment variables and the "VBOX_MSI_INSTALL_PATH" was set to:
C:\Program Files\Oracle\VirtualBox\
I changed it to
C:\Program Files\Oracle\VirtualBox
and it worked for me.. (notice the last backslash)
Thanks .. Ragnar Kofi Billy Force on facebook

Try installing the Latest version of Virtual Box, Since v5.0 has fixes for Windows 10
http://download.virtualbox.org/virtualbox/5.0.4/VirtualBox-5.0.4-102546-Win.exe
Changelog: https://www.virtualbox.org/wiki/Changelog
Windows hosts: fixed crash when opening Windows dialogs from the VM process on Windows 10 (bug #14351).
Windows hosts: fixed host-only adapter creation issues on Windows 10 (bug #14040)
Windows hosts: fixed audio on Windows 10 (bug #14432).
Windows Additions: fixed a potential crash in the WDDM driver with Windows 10 (bug #14190).
VRDP: allow Windows 10 RDP clients (bug #14216).
Windows hosts: fix for Windows 10 build 10525 and later (bug #14502).
Windows hosts: fixed network adapter enumeration on Windows 10 (bug #14437).
VMM: fixed an issue with Windows 10 guest kernel debugging over the network for Hyper-V paravirtualized VMs.
I have a same problem too and installing the latest version has fix it

Add VirtualBox to your system environment PATH variable.

None of the other answers helped me. The Android Player installer was forcing the install of Virtual Box 5.0.4 which was not working on Windows 10 Home (build 14393.51).
What did work for me was to install the latest virtual box (version 5.1.2 r108956) after installing Android player. While I can't start the android devices from Virtual Box's manager, I have had no problems starting them from Android Player or Visual Studio.

Just run as admin (Right hand click on desktop shortcut)

Related

How can I launch Android Emulator without android studio on Mac M1

I'm trying to start the emulator with this command emulator -avd Pixel_4_API_30 but it gives me an error:
[8633370112]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '/Users/primulax/../emulator/qemu/darwin-x86_64/qemu-system-aarch64': No such file or directory
Android Studio specs:
Build #AI-203.7717.56.2031.7935034, built on November 21, 2021
Runtime version: 11.0.10+0-b96-7249189 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.2
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin
✅ I was able to run with ~/Library/Android/sdk/emulator/emulator -avd Pixel_4_API_30 with this command
Use ~/Library/Android/sdk/emulator/emulator instead of ~/Library/Android/sdk/tools/emulator on MacOS, for Ubuntu use ~/Android/Sdk/emulator/emulator.
I just experienced the same issue on a freshly setup machine, emulator installed through SDK manager and all.
The error message says it all actually: If you go to /Users/primulax/../emulator/qemu/ on your machine, you'll notice that of course there is no darwin-x86_64 directory, but darwin_aarch64, since you are on an M1 machine. Whatever the reason is the emulator looks in the wrong directory, if you just duplicate the darwin_aarch64 folder and name your copy darwin-x86_64, it works as intended. Not ideal, but it's a workaround until this path-problem is fixed.
Edit: Please take a look at #Andrew Stromme's comment. Of course symlinking is a much more elegant solution to this problem!
If you have Android Studio installed, you can run the emulator from terminal without having started Android Studio first.
First of all, run
cd ~/Android/Sdk/tools && ./emulator -list-avds
to get a list of all the available Android virtual devices that you have installed.
Then, copy the name of the virtual device you want to use and run
cd ~/Android/Sdk/tools && ./emulator -avd YOUR_DEVICE_NAME
where you replace "YOUR_DEVICE_NAME" with the name of a virtual device that was listed in the installed virtual devices list.
This info and more that you may find useful can be found in the official documentation.
Now for the error you get it's most possibly due to a wrong file path. It seems that others have also faced this issue and a bug has been opened before here. The most common solution proposed is to launch emulator from the
/path/to/android-sdk/tools
directory in command line.
Also, before trying this or any other solution listed in this issue tracker, firstly make sure that you have installed from the SDK Manager the Android Emulator in SDK Tools.

Why I might suddenly get persmission denied when I just open TortoiseHG?

I installed TortoiseHG 5.6.1 (x64) on guest Win 7 Ultimate x64 in VirtualBox. The host OS is Win10 Enterprise x64. When I right-click in any folder and select "Hg Workbench", it opens successfully. After that, I accidentelly deleted the *.vdi file and had to reinstall both OS and TortoiseHG again. But, this time when I right-click and select "Hg Workbench" I always get this error:
I tried older TortoiseHG versions, but I get the same error. I even tried to reinstall guest OS again, but it didn't help. I just installed OS and TortoiseHG, so what can be that I did accidentally the first time and/or other times?
UPDATE 1
I installed TortoiseHG 5.6.1 (x64) on guest Win 10 x64 in VirtualBox and I didn't get that error message. So, it has to be something with Win 7. What can that be?

Docker Desktop Installation failed: one prerequisite is not fulfilled on Windows 10

I have a problem when installing a Docker Desktop 2.3.0.3
"Installation failed: one prerequisite is not fullfilled"
Docker Desktop requires Windows 10 Pro/Enterprise (15063+) or Windows 10 Home (19018+).
My Computer System Specification:
OS Name: Microsoft Windows 10 Pro
Version: 10.0.10240 Build 10240
RAM: 8Gb
I have tried manually Install Hyper-V and Containers in my Computer, but still failed to install the desktop docker.. Anyone can help me? Im need your help.
You need to install Windows 10 Home 2004 build which was released on May 2020, you can use Microsoft's update assistant to manually get the update if it's not showing up for you on Windows.
Get it here: https://www.microsoft.com/en-us/software-download/windows10
You may want to try Docker Toolbox
Docker Toolbox is an installer for quick setup and launch of a Docker
environment on older Mac and Windows systems that do not meet the
requirements of the new Docker Desktop for Mac and Docker Desktop for
Windows apps.
The actual required Windows version is greater than what it says in the installer GUI.
It might be a typo! and according to Docker this has happened before:
Docker actually requires Windows build xxxxx or greater - we're
working on the typo in the installer gui, but you'll need to update
your Windows to proceed. (Jan 8, 2018)
Just Update Windows and the problem goes away.
If you cannot update the system use choco
Install following the official Сhocolatey documentation: https://chocolatey.org/install
After installation, run the command choco install docker-desktop or follow the official installation documentation https://community.chocolatey.org/packages/docker-desktop

LG Smart TV SDK emulator on Virtual Box doesn't starts

I'm new on LG smart TV apps. I've installed the SDK provided by LG (Oracle Virtual Box, Safari, Eclipse, sdk itself).
Now everything is running, but when I try to launch the emulator, a remote control is displayed, and on the virtualbox window, I see an error and no emulator is launched.
This is my plataform:
Windows 7 on a intel i7, 8 gb ram
Virtual Box 4.1.18 (I've installed 4.2.4 before, but sdk installer replace it to 4.1.18)
Safari 5.1.7
Java JRE 1.6
LG Smart TV SDK 3.0.0
This is the log generated by Virtual Box:
VirtualBox 4.1.18 r78361 win.amd64 (Jun 5 2012 15:58:23) release log
00:00:05.144 Log opened 2015-09-28T15:09:54.564361900Z
00:00:05.144 OS Product: Windows 7
00:00:05.144 OS Release: 6.1.7601
00:00:05.144 OS Service Pack: 1
00:00:05.144 Host RAM: 7926MB RAM, available: 864MB
00:00:05.144 Executable: C:\Program Files\Oracle\VirtualBox\VirtualBox.exe
00:00:05.144 Process ID: 12536
00:00:05.144 Package type: WINDOWS_64BITS_GENERIC
00:00:05.145 Installed Extension Packs:
00:00:05.145 None installed!
00:00:05.156 Power up failed (vrc=VINF_SUCCESS, rc=E_FAIL (0X80004005))
00:00:05.439 ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={1968b7d3-e3bf-4ceb-99e0-cb7c913317bb} aComponent={Console} aText={The virtual machine is not powered up}, preserve=false
Is there any known issue about this? What is the reason because "Power up failed"? How can I fix the VM? Does this software really works on Windows?
Thanks!
I would try 4.2.18 and make sure you are installing the correct SDK for your OS (x64/x32).
You can uninstall VBox and reinstall if needed and again check your architecture

Genymotion error at start 'Unable to load virtualbox'

I've installed the genymotion+virtualbox package on Windows 7 64-bit and everything goes fine... But when I start Genymotion it presents me an error message Unable to load virtualbox.
VirtualBox is installed and I'm able to start it manually. I've tried to install the packages separately, updated virtualbox to 4.2.16 but nothing worked.
I've already read genymotion FAQ but it did not help.
I have spend all day to solve this error since none of the answers worked for me.
I found out that oracle virtual box doesn't install the network adapter correctly in windows 8.1
Solution:
Delete all previous virtual box adapters
Go to device manager and click "Action" > "Add legacy hardware"
Install the oracle virtual box adapters manually (my path was C:\Program Files\Oracle\VirtualBox\drivers\network\netadp\VBoxNetAdp.inf)
Now that virtual box adapters is installed correctly, it needs to be setup correctly. (the following solution is like many other solution in here)
Start Oracle VM VirtualBox and go to "File" > "Preferences" > "Network" > "Host-only Network"
Click edit
Set IPv4 192.168.56.1 mask 255.255.255.0
Click DHCP Server tab and set server adr: 192.168.56.100 server Mask: 255.255.255.0 low address bound: 192.168.56.101 upper adress bound 192.168.56.254
Now click OK and start genymotion
Had the same problem, Uninstall Genymotion, install VirtualBox stand alone from https://www.virtualbox.org/wiki/Downloads then install the Genymotion package without VirtualBox.
Try closing Android Studio/Eclipse if it's open. It worked for me.
In Linux at least, I had to restart VirtualBox, running this command on terminal:
/lib/virtualbox/VirtualBox restart
Seems to be the same on Mac OS X.
What worked for me in Windows 7 is to remove the Host-only Network (in Oracle virtual box Preferences menu [CTRL+G] -> Network -> Host-only Networks). Genymotion will recreate it automatically at the next virtual device start. For the record; I'm using a Nexus S 2.3.7 virtual device.
Open Genymotion in Windows as an administrator. My Genymotion works only in this mode
FIXED SOLUTION
Run below command in terminal, It denotes where is your virtualbox install on MAC/Linux.
$ which vboxmanage
/usr/local/bin/VBoxManage
Genymotion search the virtualBox in /usr/bin/VBoxManage while it is located to /usr/local/bin/VBoxManage , you need to create the symlink to that location , Run in terminal to fix it.
sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage
I am using Intellij IDEA and same error happened to me, I found that the path to genymotion folder was not configured properly. Either open settings using File > Settings or press Ctrl + Alt + S then in IDE Settings check if the path to the genymotion folder is correct or not.
Since Android Studio are almost similar to Intellij IDEA so you can apply the same steps above to Android Studio as well.
Actually it seems like Genymotion has an issue with the newer versions of Virtual box, I had the same issue on my Mac but when I downgraded to 4.3.30 it worked like a charm.
Verify that GenyMotion is in your PATH environment variable. I noticed mine was not auto populated, so once I entered it, it was fine.
For Windows there are 2 installers. Did you use the bundle containing VirtualBox installer?
It is call Windows 32/64 bits (with VirtualBox).
Don't ask what this has to do with that , but by right clicking the genymotion application file and changing to compatibility to Vista solved the problem!
I also experienced this when I upgraded operating system from Windows 8 to Windows 8.1. Un-installing Virtualbox and re-installing worked for me.
Close Android Studio (if Android Studio is running)
Run Genymotion as administrator
that's all! simple.
try launching it via android-studio/eclipse plugin. Thats how I had similar issue when launching it from ubuntu.

Resources