Unable to create a virtual device: Unable to create Android virtual device
<p>While installing Android studio 2.1 version and it downloaded the required components and end of the detailed view logs it shows,</p>

<pre><code>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
</code></pre>

<p>I'm running Android studio for the first time in Windows 7. </p>

<p>Screenshot:</p>

<p><a href="https://i.stack.imgur.com/PNC6H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PNC6H.png" alt="Android_Studio_setup_wizard_downloading_components_error"></a></p>

<p>And after opening the Andriod studio and running a sample app, I get the error</p>

<pre><code>Error while waiting for device: Could not start AVD
</code></pre>

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