83

I have not enabled Hyper V or hardware acceleration and don't want to either.

Is there any way that I can start android emulator for Intel x86 Atom Without hardware acceleration on Windows 8

I have created AVDs with every combination possible and each one has failed to start the AVD emulator instance , throwing the same error when starting

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!

OR is it that, the images given for Intel Atom 86 and 64 cannot run without HARDWARE ACCELERATION AND hyper V for API 21 and 19

I have found lots of similar question and read almost all documentation, but it is not clear if they can or cannot run without hyper v and hardware acceleration, hence this direct question

How do you test on android in such cases ?

Raptor
  • 48,613
  • 43
  • 209
  • 344
dcoder
  • 849
  • 1
  • 7
  • 3
  • 3
    *"I have not enabled hyper v or hardware acceleration and don't want to either"* ***Why not?*** (Particularly with regard to "...and don't want to") If it would make something work that you clearly need to work? In 2014, when just about all CPUs have virtualization baked in? – T.J. Crowder Oct 19 '14 at 21:48
  • 7
    Thanks Tj I appreciate your answer and time , as I am equal believer in performance boost and engg. That it can get, but original question still stands , can we or can we not run them without hardware accelerator – dcoder Oct 19 '14 at 22:05
  • Presumably there are methods which can do so in a purely software manner, however the error message would suggest that *the emulation engine you are currently using* cannot do so without hardware assistance. – Chris Stratton Oct 19 '14 at 22:19
  • If you don't want to enable Hyper V for hardware acceleration, I suggest you to use a physical device instead to avoid these problems. – Raptor Nov 20 '14 at 02:24
  • If I enable Hyper V, I get the same error message that @dcoder got, so the hardware acceleration necessary for Android emulator apparently conflicts with it. – Bjarte Aune Olsen Jan 01 '15 at 18:35
  • 7
    Remember, a lot of us *can't* run with HAXM. AMD users specifically. – A.Grandt Jan 08 '16 at 09:46
  • Possible duplicate of [VT Not Supported when Installing HAXM](http://stackoverflow.com/questions/20019231/vt-not-supported-when-installing-haxm) – Abhijeet Mar 11 '16 at 10:45
  • 1
    For AMD users, this is discussed in the question *[Intel's HAXM equivalent for AMD on Windows OS](http://stackoverflow.com/questions/25263360/intels-haxm-equivalent-for-amd-on-windows-os)* and the general consensus is to use the Genymotion emulator instead. – Simon East Mar 17 '16 at 01:27

13 Answers13

142

In current AVD manager you can't. You just have the opportunity to use ARM images which will not need hardware virtualization.

To run ARM images:

  1. Open AVD manager.
  2. Create a new 'Virtual Device' OR right click an existing image and select 'Duplicate'
  3. Choose arm* instead of x86/x64.
  4. Continue with the wizard.
  5. Run!

Although this is the available solution but still a slow one !!

Eslam Sameh Ahmed
  • 2,546
  • 1
  • 20
  • 34
34

You can still force the use of the soft x86 emulator by running it from the command line and using the -no-accel option, i.e. from the SDK/tools directory:

emulator -avd AVD_NAME -memory 768 -no-accel -gpu on

BUT this still won't work with the current (V24) SDK, because the current x86 system images crash the soft x86 emulator :-(

The only way I got this working again was to downgrade the SDK tools to V22.3 from here: http://dl-ssl.google.com/android/repository/tools_r22.3-windows.zip and to buld an AVD using a downgraded system image, for instance https://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-17_r02.zip. (So this is no help if you need to test on more recent versions of Android).

Google have moved on to an updated version of their emulator based on a more recent version of qemu, and provide binaries for arm and mips emulators, but have omitted to ship the x86 equivalent (there is no emulator-ranchu-x86.exe and emulator64-ranchu-x86.exe). If they did so, or if someone else went to the trouble of setting up and compiling their emulator source with the "x86" flag on, then _x86 soft emulation could conceivably be made to work again.

Graeme Gill
  • 504
  • 4
  • 11
  • 3
    THIS should be the accepted answer. All other answers explain how to run _with_ acceleration, not _without_ – Jamby Aug 05 '16 at 10:10
  • This made my emulator run on virtual box. Slow but running, yeah! – Jankapunkt May 29 '17 at 09:26
  • @Graeme After downloading SDK tools V22.3 into a separate folder for testing and running the emulator with the `-no-accel` option, the command line says `unknown option: -no-accel`. Did this option really work in the past ? Is the indicated SDK tool version correct ? Or did Google 'update' the V22.3 package to not work anymore ? – MrCC Sep 07 '17 at 13:03
  • This actually works. It is slow (as expected) but works. – Egor Pavlikhin Aug 21 '19 at 09:27
8

Same issue as in Error in launching AVD:

1) Install the Intel x86 Emulator Accelerator (HAXM installer) from the Android SDK Manager;

enter image description here

2) Run (for Windows):

{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe

or (for OSX):

{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHAXM_1.1.1_for_10_9_and_above.dmg

3) Start the emulator.

Community
  • 1
  • 1
Daniel
  • 339
  • 2
  • 3
  • 7
    IntelHAXM is used to set up hardware based emulation which is not available to original poster – Tom Cerul Aug 28 '15 at 19:31
  • This does not solve OP's question, but it sure helped me figure out why I could not run an x86 image, even after installing HAXM. Thanks! – Raj Apr 05 '16 at 02:41
  • Well the question clearly asks can android emulator for Intel x86 Atom work without what you have posted here. i.e. HAXM enabled? How can this post solve the problem @dcoder has asked? – Siva Senthil Jan 05 '17 at 11:31
  • Any way to achieve this with linux (ubuntu), using only the terminal? – Vini.g.fer Jul 06 '17 at 19:49
8

Short Answer: No. Until recently(about 1 month ago), you could do that but with the latest updates, it is not possible. (see Update to Android SDK Tools 23.0.5 and avd doesn't start).

I was doing something similar: Doing development in a virtual machine and hence couldn't use the Hardware acceleration features as they are available only in the host machine. I was using Intel x86 images with Use Host GPU option; as they were much faster than the ARM version even without hardware acceleration. But then, after this update, my emulator AVDs which were working earlier are no longer starting with the same exact error message. Also, both genymotion and Xamarin Android emulators can't be used as they also need hardware acceleration(they are actually VMs which use Hardware acceleration for speed, and hence can't be run inside another VM).

I have found this solution but haven't tried it yet. The basic idea is that to still develop inside a VM; but for testing connect to an Emulator running on the host machine(and this Emulator VM can now use the hardware acceleration feature).

Community
  • 1
  • 1
Ankur
  • 157
  • 1
  • 8
3

Is there any way that I can start android emulator for intel x86 atom Without hardware acceleration on windows 8

Not with the standard Android SDK emulator, as it requires Intel's HAXM, and HAXM wants virtualization extensions to be enabled.

Whether Genymotion or something else from another independent developer can support your desired combination, I cannot say.

CommonsWare
  • 910,778
  • 176
  • 2,215
  • 2,253
  • Thx cw , if so is the case then let me try on Genymotion and get back to you, Thx again – dcoder Oct 20 '14 at 00:01
  • @dcoder Could you make Genymotion work? Because I also have trouble about AVD and HAXM. My other option is Genymotion. So I'd like to learn did it work for you or not. – eluleci Jun 05 '15 at 14:03
  • The point is that it used to work on previous version of the SDK using soft x86 emulation. So the question is either a) how to re-enable soft x86 emulation, or b) how to downgrade the SDK to the point where this will work again. – Graeme Gill Dec 01 '15 at 12:44
  • @GraemeGill: "it used to work on previous version of the SDK using soft x86 emulation" -- to the best of my recollection, x86 emulator images always required HAXM. HAXM has certainly been required since late 2012. If you have evidence to the contrary, please supply links. – CommonsWare Dec 01 '15 at 13:02
  • @CommonsWare: See my answer below for versions of the system which had a working soft x86 emulator. – Graeme Gill Jan 22 '16 at 05:07
  • Tried Genymotion, it doesn't work without Genymotion either – Matvey Rybakov May 02 '17 at 09:57
3

The usage of the Hardware acceleration depends on the System Image you choose on the emulator.

So,

  1. Go to AVD manager, create virtual device, select hardware, click next.

  2. Choose the System Image that does not require HAXM (hardware acceleration) for running. (That is appears at the right bottom of System image window.)

Note: for other systems that require HAXM, there no way to run them without hardware acceleration.

PiotrWolkowski
  • 7,550
  • 5
  • 38
  • 58
Mina Samir
  • 31
  • 2
3

use bluestacks as a emulator for best performance. blusestack working fast without hardware based emulation

To connect bluestack to android studio.

  • Close Android Studio.
  • Go to adb.exe location.(Bydefault its C:\Users\Tarun\AppData\Local\Android\sdk\platform-tools)
  • Run adb connect localhost:5555 from this location.
  • Start Android Studio and you will get Blue Stack as emulator when you run your app.
Gopi Raj
  • 39
  • 2
1

refer intel.com's requirements : Important: Intel HAXM cannot be used on systems without an Intel processor, or with an Intel processor that lacks the hardware features described in the "Hardware Requirements" section above.To determine the capabilities of your Intel processor

[Installation Instructions for Intel® Hardware Accelerated Execution Manager ] https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x

My PC does not support vt-x, I can not use android studio 1.0.2.

OpenCode
  • 305
  • 5
  • 18
1

yes is possible to run your android emulator without have a hardware accelerator. In fact to do that, you need to open your android virtual device. When you reached to system image configure, it suggest you which version of android image you want to use. Whatever version of android system image that you select,you need to make sure that,ABI is armeabi-v7a and, you target is System image ameabi-v7a with google APIs. And then complete the rest of task and check out your emulator.

ludovic
  • 21
  • 1
0

I've run into the same problem, I found the solution at http://developer.android.com/tools/devices/emulator.html#vm-windows

Just follow this simple steps:

  1. Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.

  2. After the download completes, run [sdk]/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe

  3. Follow the on-screen instructions to complete installation.

einverne
  • 5,828
  • 4
  • 37
  • 83
Vicenç
  • 241
  • 1
  • 2
0

I have a pc with intel c2d without hardware accelaration i am having same problem in android studio. firstly i get bored with android studio and installed eclipse+sdk+adt then i have installed every thing and started emulator it worked then the same emulator worked in android studio for direct launching application in android studio and i have also runned the sample app that emulator so you can run android studio without virtualization technique even your processor does not sopport vt-x

user3309272
  • 59
  • 1
  • 1
  • 4
0

You need "VT-x supported processor" at least to run Android emulator with Hardware acceleration.

If you have enabled or installed "Hyper-V" in your windows 8 then please remove it and disable the "Hyper threading" and enable "Virtualization".

  • Why doesn't it automatically fall back to soft x86 emulation when virtualization isn't available ? The SDK used to be capable of this. – Graeme Gill Dec 01 '15 at 12:46
0

When Run 'app' (green triangle): In Device Chooser select Launch emulator and click the button [...] Rigth click on Nexus (or other) click on Duplicate In the O.S. (Android 6.0 example) click change: Clic on Show downloadable system images. Look for armeabi-v7a O.S. and click download. Set this O.S. in the device. Finish, and choose this Device for the emulation.

FelipeR
  • 427
  • 4
  • 3