Genymotion works well, but start Android Studio Plugin show error: 'unable to start VirtualBox'

904 Views Asked by At

I've installed Genymotion and VirtualBox on ubuntu 16.04 LTS and everything goes fine. Genymotion works well.

Then I installed Genymotion Android Studio Plugin,but when I clicked 'start', it shows: unable to start VirtualBox

unable to start VirtualBox

Run Genymotion directly it works well, but Android Studio Plugin goes error,It is not like this: Genymotion error at start 'Unable to load virtualbox',how to fix it?

Watch this,run genymotion directly works well, but run android studio plug it shows: 'unable to start virtualbox.'

4

There are 4 best solutions below

0
On

enter image description here

Open Genymotion -> Settings -> ADB -> Use custom Android SDK tools -> locate your SDK.

You have to use the Genymotion SDK as that of Android studio.Try it hope it helps !!

12
On

If you don't have geni virtual box installed, install it.

Your error says that you don't have your virtual box installed in your PC .

If you have then you have not given the right path click on geni icon and set path of it where You installed

(by default its like /Applications/Genymotion.app).you can read here) enter image description here

Installing it on your pc won't be enough .You need to apply the plugin in android studio as well.

Go to File>settings >(search for plugins in your left side)>select the option plugin > browse repositories > and install geni plugin and you are good to go!

Restart android studio.

enter image description here

enter image description here

Finally if i missed anything watch this video for full thing


Edit:If your are using a V.Box

Go to Network and Sharing Center > Change adapter settings and enable these:

  • Local Area Connection (if it's disabled)
  • VirtualBox Host-Only Network

I think that enabling the second will do the job, but I did the first anyways. read More details --------> Unable to start Genymotion Virtual Device - Virtualbox Host Only Ethernet Adapter Failed to start

Hope it helps.

0
On

Try uninstalling your current version of virtualbox and install Virtualbox version 5.0.28 from here: https://www.virtualbox.org/wiki/Download_Old_Builds_5_0

0
On

The way around the error is to:

1) Click on the Genymotion Device Manager in Android Studio. Once the Genymotion Device Manager window pops up, you will see your virtual device/devices, and its/their status should be "off".

Genymotion Device Manager

Virtual Device Status is off

2) Now, go run Genymotion outside of Android Studio.

3) In Genymotion, click on your virtual device to select it and click on the start button at the top left corner to start the virtual device.

4) Once your virtual device is up and running, go back to the Genymotion Device Manager window in Android Studio and click on refresh. You should see that the status of the virtual device is switched to "on". Now, you can run your code directly to Genymotion.