I like to use an emulator to debug my android apps. My emulator of choice is the Genymotion emulator. It’s much easier to install and use than the one in the android-sdk.
One drawback I have seen with it it, is that sometimes it just refuses to start. Getting it to start back up isn’t hard, but it isn’t all that unintuitive.
Try Try Again
The first thing to try is to just restart the emulator a few more times. It might just work the third or fourth time. You don’t have to restart the entire Genymotion console, just hit the start button and wait for the emulator to succeed or fail. Try this a few times and you might just get lucky.
Delete Network Settings
If you’ve tried a few times and still don’t have any success you can force Genymotion to reconfigure its network settings.
Summary
- Open up Oracle VM Virtual Box manager
- Go to Preferences
- Go to the Network tab
- Delete the VirtualBox Host-Only Ethernet Adapter
- Start up the emulator as normal
Details
Open up the Oracle VM Virtual Box manager. I do this by typing any part of the name that I happen to remember at the time into my start menu.
VirtualBox is what powers the emulator, so you will see all of your android images listed. Go to File –> Preferences
Then click on Network on the right.
You should see “VirtualBox Host-Only Ethernet Adapter” in the “Host-only Networks”. Select it and click the delete button on the right (it’s the button in the middle)
Now, go back to Genymotion and try to start the emulator again. It will notice that the virtual network adapter is missing and recreate it. You may see a UAC prompt asking if VirtualBox should be allowed to make changes to your computer. Click yes.
Your emulator should now startup.