最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Android Studio中提示:HAX is not working and emulator runs in emulation mode

Android Studio crifan 6861浏览 0评论

【背景】

看到:

【记录】Android Studio中调试和运行OsmAnd

C:\Users\Administrator\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none
Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label:
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: device fd:1236
HAX is not working and emulator runs in emulation mode
emulator: The memory needed by this VM exceeds the driver limit.
emulator: warning: opening audio input failed
creating window 61 83 462 820
emulator: emulator window was out of view and was recentered

如图:

HAX is not working and emulator runs in emulation mode

HAX is not working and emulator runs in emulation mode

所以想要去在Android Studio中安装HAX。

注:

之前已经解决过类似问题,不过是在Eclipse+ADT下:

【已解决】Android的模拟器,在ADT中调试运行AVD时,速度太慢,极其的慢

 

【解决过程】

1.Tools->Android->SDK Manager

android studio Tools Android SDK Manager

然后就看到对应的HAX了:

android SDK manager intel x86 emulator accelerator HAXM installer

2.然后过了会,弹出下载对话框:

done loading package for download haxm

下载了很多相关的东西:

Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Validate XML: https://dl.google.com/android/repository/repository-10.xml
Parse XML:    https://dl.google.com/android/repository/repository-10.xml
  Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)
  Found SDK Platform Android 1.5, API 3, revision 4 (Obsolete)
  Found SDK Platform Android 1.6, API 4, revision 3 (Obsolete)
  Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)
  Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)
  Found SDK Platform Android 2.1, API 7, revision 3 (Obsolete)
  Found SDK Platform Android 2.2, API 8, revision 3
  Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
  Found SDK Platform Android 2.3.3, API 10, revision 2
  Found SDK Platform Android 3.0, API 11, revision 2 (Obsolete)
  Found SDK Platform Android 3.1, API 12, revision 3 (Obsolete)
  Found SDK Platform Android 3.2, API 13, revision 1 (Obsolete)
  Found SDK Platform Android 4.0, API 14, revision 4 (Obsolete)
  Found SDK Platform Android 4.0.3, API 15, revision 5
  Found SDK Platform Android 4.1.2, API 16, revision 5
  Found SDK Platform Android 4.2.2, API 17, revision 3
  Found SDK Platform Android 4.3.1, API 18, revision 3
  Found SDK Platform Android 4.4.2, API 19, revision 4
  Found SDK Platform Android 4.4W.2, API 20, revision 2
  Found SDK Platform Android 5.0.1, API 21, revision 2
  Found SDK Platform Android 5.1.1, API 22, revision 2
  Found Samples for SDK API 7, revision 1 (Obsolete)
  Found Samples for SDK API 8, revision 1
  Found Samples for SDK API 9, revision 1 (Obsolete)
  Found Samples for SDK API 10, revision 1
  Found Samples for SDK API 11, revision 1 (Obsolete)
  Found Samples for SDK API 12, revision 1 (Obsolete)
  Found Samples for SDK API 13, revision 1 (Obsolete)
  Found Samples for SDK API 14, revision 2 (Obsolete)
  Found Samples for SDK API 15, revision 2
  Found Samples for SDK API 16, revision 1
  Found Samples for SDK API 17, revision 1
  Found Samples for SDK API 18, revision 1
  Found Samples for SDK API 19, revision 6
  Found Samples for SDK API 20, revision 3
  Found Samples for SDK API 21, revision 4
  Found Samples for SDK API 22, revision 5
  Found Android SDK Platform-tools, revision 22
  Found Android SDK Build-tools, revision 17 (Obsolete)
  Found Android SDK Build-tools, revision 18.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 18.1 (Obsolete)
  Found Android SDK Build-tools, revision 18.1.1 (Obsolete)
  Found Android SDK Build-tools, revision 19 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.2 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.3 (Obsolete)
  Found Android SDK Build-tools, revision 19.1
  Found Android SDK Build-tools, revision 20
  Found Android SDK Build-tools, revision 21 (Obsolete)
  Found Android SDK Build-tools, revision 21.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.0.2 (Obsolete)
  Found Android SDK Build-tools, revision 21.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.1.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.1.2
  Found Android SDK Build-tools, revision 22 (Obsolete)
  Found Android SDK Build-tools, revision 22.0.1
  Found Android SDK Tools, revision 24.1.2
  Found Documentation for Android SDK, API 22, revision 1
  Found Sources for Android SDK, API 14, revision 1 (Obsolete)
  Found Sources for Android SDK, API 15, revision 2
  Found Sources for Android SDK, API 16, revision 2
  Found Sources for Android SDK, API 17, revision 1
  Found Sources for Android SDK, API 18, revision 1
  Found Sources for Android SDK, API 19, revision 2
  Found Sources for Android SDK, API 20, revision 1
  Found Sources for Android SDK, API 21, revision 1
  Found Sources for Android SDK, API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/addon.xml
Validate XML: https://dl.google.com/android/repository/addon.xml
Parse XML:    https://dl.google.com/android/repository/addon.xml
  Found Google APIs, Android API 3, revision 3 (Obsolete)
  Found Google APIs, Android API 4, revision 2 (Obsolete)
  Found Google APIs, Android API 5, revision 1 (Obsolete)
  Found Google APIs, Android API 6, revision 1 (Obsolete)
  Found Google APIs, Android API 7, revision 1 (Obsolete)
  Found Google APIs, Android API 8, revision 2
  Found Google APIs, Android API 9, revision 2 (Obsolete)
  Found Google APIs, Android API 10, revision 2
  Found Google APIs, Android API 11, revision 1 (Obsolete)
  Found Google APIs, Android API 12, revision 1 (Obsolete)
  Found Google APIs, Android API 13, revision 1 (Obsolete)
  Found Google APIs, Android API 14, revision 2 (Obsolete)
  Found Google APIs, Android API 15, revision 2
  Found Google APIs, Android API 16, revision 3
  Found Google APIs, Android API 17, revision 3
  Found Google APIs, Android API 18, revision 3
  Found Google APIs (ARM System Image), Android API 19, revision 12
  Found Google APIs, Android API 21, revision 1
  Found Google APIs, Android API 22, revision 1
  Found Google TV Addon, Android API 12, revision 2 (Obsolete)
  Found Google TV Addon, Android API 13, revision 1 (Obsolete)
  Found Android Support Library, revision 22
  Found Android Support Repository, revision 12
  Found Google Repository, revision 16
  Found Google Play Licensing Library, revision 2
  Found Google Play APK Expansion Library, revision 3
  Found Google Play services for Froyo, revision 12 (Obsolete)
  Found Google Play services, revision 23
  Found Google USB Driver, revision 11
  Found Google Play Billing Library, revision 5
  Found Google AdMob Ads SDK, revision 11 (Obsolete)
  Found Google Analytics App Tracking SDK, revision 3 (Obsolete)
  Found Google Web Driver, revision 2
  Found Google Cloud Messaging for Android Library, revision 3 (Obsolete)
  Found Android Auto API Simulators, revision 1
Fetching URL: https://dl.google.com/android/repository/addon-6.xml
Validate XML: https://dl.google.com/android/repository/addon-6.xml
Parse XML:    https://dl.google.com/android/repository/addon-6.xml
  Found Android Support Library, revision 19.1
Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Parse XML:    https://dl.google.com/android/repository/extras/intel/addon.xml
  Found Intel x86 Emulator Accelerator (HAXM installer), revision 5.3
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android/sys-img.xml
  Found ARM EABI v7a System Image, Android API 14, revision 2 (Obsolete)
  Found ARM EABI v7a System Image, Android API 15, revision 2
  Found ARM EABI v7a System Image, Android API 16, revision 3
  Found ARM EABI v7a System Image, Android API 17, revision 2
  Found ARM EABI v7a System Image, Android API 18, revision 2
  Found ARM EABI v7a System Image, Android API 19, revision 2
  Found ARM EABI v7a System Image, Android API 21, revision 1
  Found Intel x86 Atom System Image, Android API 10, revision 2
  Found Intel x86 Atom System Image, Android API 15, revision 1
  Found Intel x86 Atom System Image, Android API 16, revision 1
  Found Intel x86 Atom System Image, Android API 17, revision 1
  Found Intel x86 Atom System Image, Android API 18, revision 1
  Found Intel x86 Atom System Image, Android API 19, revision 2
  Found Intel x86 Atom System Image, Android API 21, revision 1
  Found Intel x86 Atom_64 System Image, Android API 21, revision 1
  Found Intel x86 Atom System Image, Android API 22, revision 1
  Found Intel x86 Atom_64 System Image, Android API 22, revision 1
  Found ARM EABI v7a System Image, Android API 22, revision 1
  Found MIPS System Image, Android API 15, revision 1
  Found MIPS System Image, Android API 16, revision 4
  Found MIPS System Image, Android API 17, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Found Android Wear ARM EABI v7a System Image, Android API 20, revision 4
  Found Android Wear Intel x86 Atom System Image, Android API 20, revision 4
  Found Android Wear ARM EABI v7a System Image, Android API 21, revision 2
  Found Android Wear Intel x86 Atom System Image, Android API 21, revision 2
Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Found Android TV Intel x86 Atom System Image, Android API 21, revision 1
  Found Android TV ARM EABI v7a System Image, Android API 21, revision 1
  Found Android TV Intel x86 Atom System Image, Android API 22, revision 1
  Found Android TV ARM EABI v7a System Image, Android API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Found Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 4
  Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 4
  Found Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 4
  Found Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 1
  Found Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 1
  Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Validate XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
  Found Google APIs (x86 System Image), Android API 19, revision 12
Done loading packages.
Fetching https://dl.google.com/android/repository/addons_list-2.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Fetching URL: https://dl.google.com/android/repository/repository-10.xml
Validate XML: https://dl.google.com/android/repository/repository-10.xml
Parse XML:    https://dl.google.com/android/repository/repository-10.xml
  Found SDK Platform Android 1.1, API 2, revision 1 (Obsolete)
  Found SDK Platform Android 1.5, API 3, revision 4 (Obsolete)
  Found SDK Platform Android 1.6, API 4, revision 3 (Obsolete)
  Found SDK Platform Android 2.0, API 5, revision 1 (Obsolete)
  Found SDK Platform Android 2.0.1, API 6, revision 1 (Obsolete)
  Found SDK Platform Android 2.1, API 7, revision 3 (Obsolete)
  Found SDK Platform Android 2.2, API 8, revision 3
  Found SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
  Found SDK Platform Android 2.3.3, API 10, revision 2
  Found SDK Platform Android 3.0, API 11, revision 2 (Obsolete)
  Found SDK Platform Android 3.1, API 12, revision 3 (Obsolete)
  Found SDK Platform Android 3.2, API 13, revision 1 (Obsolete)
  Found SDK Platform Android 4.0, API 14, revision 4 (Obsolete)
  Found SDK Platform Android 4.0.3, API 15, revision 5
  Found SDK Platform Android 4.1.2, API 16, revision 5
  Found SDK Platform Android 4.2.2, API 17, revision 3
  Found SDK Platform Android 4.3.1, API 18, revision 3
  Found SDK Platform Android 4.4.2, API 19, revision 4
  Found SDK Platform Android 4.4W.2, API 20, revision 2
  Found SDK Platform Android 5.0.1, API 21, revision 2
  Found SDK Platform Android 5.1.1, API 22, revision 2
  Found Samples for SDK API 7, revision 1 (Obsolete)
  Found Samples for SDK API 8, revision 1
  Found Samples for SDK API 9, revision 1 (Obsolete)
  Found Samples for SDK API 10, revision 1
  Found Samples for SDK API 11, revision 1 (Obsolete)
  Found Samples for SDK API 12, revision 1 (Obsolete)
  Found Samples for SDK API 13, revision 1 (Obsolete)
  Found Samples for SDK API 14, revision 2 (Obsolete)
  Found Samples for SDK API 15, revision 2
  Found Samples for SDK API 16, revision 1
  Found Samples for SDK API 17, revision 1
  Found Samples for SDK API 18, revision 1
  Found Samples for SDK API 19, revision 6
  Found Samples for SDK API 20, revision 3
  Found Samples for SDK API 21, revision 4
  Found Samples for SDK API 22, revision 5
  Found Android SDK Platform-tools, revision 22
  Found Android SDK Build-tools, revision 17 (Obsolete)
  Found Android SDK Build-tools, revision 18.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 18.1 (Obsolete)
  Found Android SDK Build-tools, revision 18.1.1 (Obsolete)
  Found Android SDK Build-tools, revision 19 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.2 (Obsolete)
  Found Android SDK Build-tools, revision 19.0.3 (Obsolete)
  Found Android SDK Build-tools, revision 19.1
  Found Android SDK Build-tools, revision 20
  Found Android SDK Build-tools, revision 21 (Obsolete)
  Found Android SDK Build-tools, revision 21.0.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.0.2 (Obsolete)
  Found Android SDK Build-tools, revision 21.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.1.1 (Obsolete)
  Found Android SDK Build-tools, revision 21.1.2
  Found Android SDK Build-tools, revision 22 (Obsolete)
  Found Android SDK Build-tools, revision 22.0.1
  Found Android SDK Tools, revision 24.1.2
  Found Documentation for Android SDK, API 22, revision 1
  Found Sources for Android SDK, API 14, revision 1 (Obsolete)
  Found Sources for Android SDK, API 15, revision 2
  Found Sources for Android SDK, API 16, revision 2
  Found Sources for Android SDK, API 17, revision 1
  Found Sources for Android SDK, API 18, revision 1
  Found Sources for Android SDK, API 19, revision 2
  Found Sources for Android SDK, API 20, revision 1
  Found Sources for Android SDK, API 21, revision 1
  Found Sources for Android SDK, API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/addon.xml
Validate XML: https://dl.google.com/android/repository/addon.xml
Parse XML:    https://dl.google.com/android/repository/addon.xml
  Found Google APIs, Android API 3, revision 3 (Obsolete)
  Found Google APIs, Android API 4, revision 2 (Obsolete)
  Found Google APIs, Android API 5, revision 1 (Obsolete)
  Found Google APIs, Android API 6, revision 1 (Obsolete)
  Found Google APIs, Android API 7, revision 1 (Obsolete)
  Found Google APIs, Android API 8, revision 2
  Found Google APIs, Android API 9, revision 2 (Obsolete)
  Found Google APIs, Android API 10, revision 2
  Found Google APIs, Android API 11, revision 1 (Obsolete)
  Found Google APIs, Android API 12, revision 1 (Obsolete)
  Found Google APIs, Android API 13, revision 1 (Obsolete)
  Found Google APIs, Android API 14, revision 2 (Obsolete)
  Found Google APIs, Android API 15, revision 2
  Found Google APIs, Android API 16, revision 3
  Found Google APIs, Android API 17, revision 3
  Found Google APIs, Android API 18, revision 3
  Found Google APIs (ARM System Image), Android API 19, revision 12
  Found Google APIs, Android API 21, revision 1
  Found Google APIs, Android API 22, revision 1
  Found Google TV Addon, Android API 12, revision 2 (Obsolete)
  Found Google TV Addon, Android API 13, revision 1 (Obsolete)
  Found Android Support Library, revision 22
  Found Android Support Repository, revision 12
  Found Google Repository, revision 16
  Found Google Play Licensing Library, revision 2
  Found Google Play APK Expansion Library, revision 3
  Found Google Play services for Froyo, revision 12 (Obsolete)
  Found Google Play services, revision 23
  Found Google USB Driver, revision 11
  Found Google Play Billing Library, revision 5
  Found Google AdMob Ads SDK, revision 11 (Obsolete)
  Found Google Analytics App Tracking SDK, revision 3 (Obsolete)
  Found Google Web Driver, revision 2
  Found Google Cloud Messaging for Android Library, revision 3 (Obsolete)
  Found Android Auto API Simulators, revision 1
Fetching URL: https://dl.google.com/android/repository/addon-6.xml
Validate XML: https://dl.google.com/android/repository/addon-6.xml
Parse XML:    https://dl.google.com/android/repository/addon-6.xml
  Found Android Support Library, revision 19.1
Fetching URL: https://dl-ssl.google.com/glass/gdk/addon.xml
Failed to fetch URL https://dl-ssl.google.com/glass/gdk/addon.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Fetching URL: https://dl.google.com/android/repository/extras/intel/addon.xml
Validate XML: https://dl.google.com/android/repository/extras/intel/addon.xml
Parse XML:    https://dl.google.com/android/repository/extras/intel/addon.xml
  Found Intel x86 Emulator Accelerator (HAXM installer), revision 5.3
Fetching URL: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android/sys-img.xml
  Found ARM EABI v7a System Image, Android API 14, revision 2 (Obsolete)
  Found ARM EABI v7a System Image, Android API 15, revision 2
  Found ARM EABI v7a System Image, Android API 16, revision 3
  Found ARM EABI v7a System Image, Android API 17, revision 2
  Found ARM EABI v7a System Image, Android API 18, revision 2
  Found ARM EABI v7a System Image, Android API 19, revision 2
  Found ARM EABI v7a System Image, Android API 21, revision 1
  Found Intel x86 Atom System Image, Android API 10, revision 2
  Found Intel x86 Atom System Image, Android API 15, revision 1
  Found Intel x86 Atom System Image, Android API 16, revision 1
  Found Intel x86 Atom System Image, Android API 17, revision 1
  Found Intel x86 Atom System Image, Android API 18, revision 1
  Found Intel x86 Atom System Image, Android API 19, revision 2
  Found Intel x86 Atom System Image, Android API 21, revision 1
  Found Intel x86 Atom_64 System Image, Android API 21, revision 1
  Found Intel x86 Atom System Image, Android API 22, revision 1
  Found Intel x86 Atom_64 System Image, Android API 22, revision 1
  Found ARM EABI v7a System Image, Android API 22, revision 1
  Found MIPS System Image, Android API 15, revision 1
  Found MIPS System Image, Android API 16, revision 4
  Found MIPS System Image, Android API 17, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
  Found Android Wear ARM EABI v7a System Image, Android API 20, revision 4
  Found Android Wear Intel x86 Atom System Image, Android API 20, revision 4
  Found Android Wear ARM EABI v7a System Image, Android API 21, revision 2
  Found Android Wear Intel x86 Atom System Image, Android API 21, revision 2
Fetching URL: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
  Found Android TV Intel x86 Atom System Image, Android API 21, revision 1
  Found Android TV ARM EABI v7a System Image, Android API 21, revision 1
  Found Android TV Intel x86 Atom System Image, Android API 22, revision 1
  Found Android TV ARM EABI v7a System Image, Android API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Validate XML: https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
  Found Google APIs Intel x86 Atom System Image, Google Inc. API 21, revision 4
  Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 21, revision 4
  Found Google APIs ARM EABI v7a System Image, Google Inc. API 21, revision 4
  Found Google APIs Intel x86 Atom System Image, Google Inc. API 22, revision 1
  Found Google APIs ARM EABI v7a System Image, Google Inc. API 22, revision 1
  Found Google APIs Intel x86 Atom_64 System Image, Google Inc. API 22, revision 1
Fetching URL: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Validate XML: https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
Parse XML:    https://dl.google.com/android/repository/sys-img/x86/addon-x86.xml
  Found Google APIs (x86 System Image), Android API 19, revision 12
Done loading packages.

3.去下载和安装HAX。

intel and android extra license choose intel x86 haxm

然后安装后,显示已安装:

HAXM show installed after download and install

4.结果第二次去运行虚拟机,结果还是同样提示:

C:\Users\Administrator\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_21_x86 -netspeed full -netdelay none

emulator: device fd:1236

HAX is not working and emulator runs in emulation mode

emulator: The memory needed by this VM exceeds the driver limit.

emulator: warning: opening audio input failed

creating window 61 83 462 820

emulator: emulator window was out of view and was recentered

关闭Android Studio后重新去试试。

然后果然可以了,显示HAX工作了:

C:\Users\Administrator\AppData\Local\Android\sdk\tools\emulator.exe -avd 3_7_WVGA_NexusOne_API_21 -netspeed full -netdelay none

emulator: device fd:1204

HAX is working and emulator runs in fast virt mode

emulator: warning: opening audio input failed

creating window 0 0 480 800

 

【总结】

Android Studio中显示:

HAX is not working and emulator runs in emulation mode

时,去

Tools->Android->SDK Manager

然后选中

Extras->Intel X86 Emulator Accelerator (HAXM installer)

并安装即可。

记得如果HAX效果没生效,则试试重启Android Studio试试,或许就可以了。

相对来说:和之前的Eclipse+ADT时代,要先后自己手动下载HAX相关工具并安装和配置,的做法相比,Android Studio中只需要选中并安装即可搞定,要方便多了。

转载请注明:在路上 » 【已解决】Android Studio中提示:HAX is not working and emulator runs in emulation mode

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 我已经安装成功了,可是还是出现这个错误
    lala9年前 (2016-02-25)回复
87 queries in 0.172 seconds, using 22.18MB memory