Android Studio problem

I have just installed Android Studio 1.1.0

I have tried to run a Hello World project. the code compiles but I get an error when attempting to run the app on an Emulator. The following error is displayed:

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!

I have installed the HAXM.
I am running windows 8.1 as a VMWare virtual machine.

Any ideas please ?

Thanks, Roger
Roger AlcindorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris Harte2015 Top Expert (Most Article Points)Commented:
Like it says you have to install HAXM which is an accelerator for the emulator. In android studio go to
Tools->Android->SDK Manager

This should bring up the installer for all the bits you need for development. At the bottom is extras, at the very bottom should be a tick box for the haxm software called "Intel x86 Emulator Accelerator (HAXM installer)" This will install it, though for me it took a couple of restarts. (Eclipse was much easier).
Then you have to create a new virtual device using the haxm accelerated option.

In both studio and eclipse I have to start the emulator first, then in run configure use the "run in attached device" option.
Chris Harte2015 Top Expert (Most Article Points)Commented:
And, MOST IMPORTANTLY,  your chip has to support virtualisation. This is turned on in the bios, accessed at start up. If your hardware does not support virtualisation you are going to have to use the ARM emulator or plug your own device in and use that via usb debugging.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roger AlcindorAuthor Commented:
HAXM is installed and I have checked the BIOS and virtualisation is enabled in the BIOS.

Can you explain how to "create a new virtual device using the haxm accelerated option" as suggested ?

I attach evidence that HAXM is installed.

Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Chris Harte2015 Top Expert (Most Article Points)Commented:
For completeness here is the whole process.

Tools->Android->AVD Manager
This will bring up your virtual device manager. In the bottom left is a new create virtual device button. Each option has a list of devices you can emulate. (I use Phone->Nexus 5). Next will give you a list of system images. Select an x86 with a target operating system you are going to use (these use HAXM).

Next is the ability to name the device and, under advance setting, alter the display size on your monitor. When you have finished, double click it in the list of available devices and it should start.

WARNING first time out this can take several minutes (several > 10).

Next to the run button in the toolbar should be a dropdown button that will bring up the Run/Debug Configurations. Under the general tab there is a 'Target Device' box. Select the emulator and the Prefer Android Virtual Device drop down should contain the emulator you just started. Apply. Now when you click run it will default to this device. If you right click your app in the 'Project' window it will give you the option to run or debug it. Run it and a dialog box should pop up asking if you want to run it in an existing device.

It should work. On my machine it is really slow, I find eclipse much more efficient.
Roger AlcindorAuthor Commented:
I have discovered the cause of the problem. It appears that since I am running the software in a virtual machine using VMWare workstation, HAXM cannot be used. I found this at the link given below. The relevant information is shown highlighted below. Looks like I will need to use the ARM emulator. I plan to be using Embarcadero C++ Builder XE7 later on this year to develop mobile phone applications, I wonder if I will run into the same issue then?
HAXMcompatibilitywith VM
Roger AlcindorAuthor Commented:
Thanks for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.