HAXM y piruleta


Después de la actualización del SDK a Android 5, no puedo usar Intel Hardware Accelerated Execution Manager:

$ android-sdk-macosx/tools/emulator -avd AVD_for_LowMemoryDevice_by_User -netspeed full -netdelay none -gpu on
HAX is working and emulator runs in fast virt mode    
emulator: VCPU shutdown request

EAX=80000001 EBX=019a0000 ECX=c0000080 EDX=00000000
ESI=00013c40 EDI=01d9d000 EBP=00100000 ESP=004f6104
EIP=001000f0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
CS =0010 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
DS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
FS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
GS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
LDT=0000 00000000 00000000 00008200 DPL=0 LDT
TR =0020 00000000 00000fff 00008b00 DPL=0 TSS64-busy
GDT=     00000000004ea098 00000030
IDT=     0000000000000000 00000000
CR0=80000011 CR2=0000000000000000 CR3=0000000001d97000 CR4=00000020
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
DR6=00000000ffff0ff0 DR7=0000000000000400
emulator: VCPU shutdown request

Alguna idea de cómo solucionarlo? (plataforma: OS X 10.10, versión de java "1.8.0_25")

Author: Gabor, 2014-10-20

16 answers

Tuve el mismo problema al crear un Nexus 6 AVD con una imagen x86_64 y parece que el HAXM no es compatible con un viejo Core 2 Duo (Mac Book Pro a finales de 2009, por ejemplo).
Esto se especifica en la nota de publicación problemas conocidos en $ANDROID_SDK_HOME/extras/intel/Hardware_Accelerated_Execution_Manager.

El controlador HAXM no admite la emulación de una imagen de sistema de 64 bits en Intel sistemas basados en la microarquitectura Core (Core, Core2 Duo, etc.). Todo se admiten sistemas basados en Nehalem y más allá. (Corei3, Core i5 y Core i7 máquinas).

 22
Author: florian,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-21 22:10:19

Pruebe el nuevo HAXM proporcionar en el sitio oficial de Intel https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx, ahora es 1.1.1.El que desde sdk Manager es todavía viejo 1.1.0. funciona para mí.

 9
Author: Solskjaer49,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-29 03:39:32

Parece que el SDK manager instala automáticamente HAXM 1.0.8 en lugar de 1.1.0/1.1.1. Para arreglar esto, vaya a

<android-sdk>/extras/intel/Hardware_Accelerated_Execution_Manager

Y reinstalar HAXM ejecutando

$ chmod +x silent_install.sh
$ sudo ./silent_install.sh -u
$ sudo ./silent_install.sh

El emulador debería arrancar correctamente ahora.

 8
Author: ubuntudroid,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-01-09 09:53:02

Actualizar a la última versión de HAXM puede no ser suficiente (la versión actual hasta la fecha es 6.0.1).

Todavía puede comenzar con una actualización de HAXM, pero si ejecuta una CPU más antigua, como un Core 2 Duo, definitivamente debe elegir una versión x86 de su imagen virtual, no x86_64.

 8
Author: Yako,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-06 07:30:47

Cuando empecé mi primer emulador de desgaste que estaba bien hasta hoy cuando después de reiniciar mi MacBook Pro he experimentado el accidente VCPU shutdown request. La versión de HAXM que estoy usando es 1.1.4. Así que intenté reiniciar, recrear imágenes del emulador... Nada funcionó hasta que he reinstalado el controlador HAXM usando .instalador de dmg en / extras / HAXM... carpeta. Solo para tu INFORMACIÓN

 3
Author: Vito Valov,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-11 23:22:18

Recientemente actualizé a El-capitan os, y me he encontrado con el mismo problema.

Primero, desinstale HAXM completamente.

sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh 
sudo rm /System/Library/LaunchDaemons/com.intel.haxm.plist

En segundo lugar, reinstale HAXM con la última versión. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

Esto resolvió el problema para mí.

A continuación está el enlace al que me referí HAXM en OS X sigue desapareciendo

 3
Author: Jaeseok Jay An,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-05-23 11:54:00

Resuelto! Aparentemente, estaba usando HAXM 1.0.8 que es la última versión que está disponible en el sitio de Intel. Sin embargo, Android SDK Manager descarga una versión de vista previa en HAXM 1.1.0 que es necesaria para ejecutar imágenes de 64 bits.

 2
Author: Shantanu Paul,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-21 18:24:03

Si usas Android Studio 0.8.13 o una versión anterior, actualízala a la versión más reciente. Este problema se solucionó en la versión 0.8.14.

 2
Author: Kartihkraj Duraisamy,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-24 07:23:06

Funciona con el último Android studio después de actualizar el componente SDK a:

Intel x86 Emulator Accelerator (HAXM installer), revisión 5.2

 2
Author: Gabor,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-25 14:20:14

Resuelto el problema. Necesitas hacer estas cosas:

  • Desinstalar old HAXM: sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
  • Deshabilitar la firma kext: aparentemente HAXM 1.1.0 no está firmada apropiadamente sudo nvram boot-args="kext-dev-mode=1". Reboot
  • Instale el nuevo HAXM 1.1.0 como de costumbre (tenga en cuenta que si no deshabilita la firma kext, haxm se negará a instalar con el error de que VT/NX está deshabilitado)
  • Añadir $ANDROID_HOME/tools/lib a su $LD_LIBRARY_PATH

API 21 AVD imágenes funcionan sin problemas para mí ahora.

Fuente: http://www.csell.net/2014/09/03/VTNX_Not_Enabled /

 1
Author: Rohan Dhruva,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-25 01:36:31

Intenta reducir el Límite de memoria utilizado por HAXM.

Https://software.intel.com/sites/default/files/managed/86/82/ss-mac-3.png

Esto funciona para mí.

 1
Author: Diego Bas,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-15 18:32:46

1-Actualiza HAXM Accelerator a revisión 5.2 Desde tu SDK Manager

2-Instalar el nuevo HAXM actualizado (no es necesario desinstalar el anterior) - > (Reiniciar el sistema)

3 - Haga el AVD de Lollipop Usando la siguiente Configuración.

introduzca la descripción de la imagen aquí

Espero que esto ayude

 1
Author: Qadir Hussain,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-01-09 12:37:39

Ahora hay una nueva versión HAXM 1.1.1 y tiene una versión diferente para Mac OS 10.9. introduzca la descripción de la imagen aquí

 0
Author: satyajit,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-12-08 23:10:52

Actualizar HAXM desde el gestor de descargas funcionó para mí. No se descarga automáticamente cuando actualizas tu sistema a Android 5.x

 0
Author: user2824803,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-04 21:44:00

Si después de la actualización aún no funciona, obtenga un borrado de datos en su emulador y no lo cargue desde la instantánea porque el problema está aquí, está dañado me acaba de pasar en este momento y iv lo consiguió resuelto de esta manera

 0
Author: Khan Laoji,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-15 17:44:20

Tuve un problema similar cuando arranqué un Vagrant VM simultáneamente. Luego envió una solicitud de apagado de VCPU. Además, el emulador de Android no arrancaba cuando se estaba ejecutando una VM Vagrant. Espero que esto pueda ayudar a alguien.

emulator: VCPU shutdown request

EAX=00000000 EBX=c085e000 ECX=01000000 EDX=00000000
ESI=00000000 EDI=c0860000 EBP=c085ffbc ESP=c085ffb4
EIP=c02065cf EFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =007b 00000000 ffffffff 00c0f300 DPL=3 DS   [-WA]
CS =0060 00000000 ffffffff 00c09b00 DPL=0 CS32 [-RA]
SS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
DS =007b 00000000 ffffffff 00c0f300 DPL=3 DS   [-WA]
FS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
GS =0018 00000000 ffffffff 00c09300 DPL=0 DS   [-WA]
LDT=0000 00000000 00000000 00008200 DPL=0 LDT
TR =0020 00001000 00000067 00008900 DPL=0 TSS32-avl
GDT=     0086a2c0 0000001f
IDT=     00000000 00000000
CR0=8005003b CR2=b6ec0004 CR3=3666b000 CR4=00000690
DR0=00000000 DR1=00000000 DR2=00000000 DR3=00000000 
DR6=ffff0ff0 DR7=00000400
emulator: Failed to sync vcpu reg
 0
Author: gustre,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-03-04 22:06:40