Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create a virtual device: Unable to create Android virtual device

While installing Android studio 2.1 version and it downloaded the required components and end of the detailed view logs it shows,

Android SDK is up to date.
Running Intel® HAXM installer
Intel HAXM installed successfully!
Creating Android virtual device
Unable to create a virtual device: Unable to create Android virtual device

I'm running Android studio for the first time in Windows 7.

Screenshot:

Android_Studio_setup_wizard_downloading_components_error

And after opening the Andriod studio and running a sample app, I get the error

Error while waiting for device: Could not start AVD

Why is it unable to create a virtual device and how can I solve the problem?

like image 935
Lucky Avatar asked May 26 '16 09:05

Lucky


2 Answers

All what you can do with that screen is just to click finish.

The problem that you may get as a result is failing in creating a first Virtual Device for you because its config file is either missing (not created) or corrupted ! config file is either missing (not created) or corrupted

So what you would do is just to create your own new Virtual Device and delete the corrupted one! reate your own new Virtual Device

like image 117
Jamalla Avatar answered Sep 28 '22 08:09

Jamalla


Even though I don't know what exactly caused the avd creation problem in a new laptop. I did exactly the same thing as user @Jamalla posted. I clicked finish and tried to run my sample app in the existing emulator. As Jamalla pointed out the config.ini file was corrupted. So I deleted the existing AVD and created a new one. But I couldn't start it either because my VT was not enabled in my BIOS.

After enabling my VTx in BIOS menu I was able to start the AVD with no issues.

like image 31
Lucky Avatar answered Sep 28 '22 09:09

Lucky