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

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

Android Studio crifan 6956浏览 0评论

【背景】

看到:

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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

下载了很多相关的东西:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
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.327 seconds, using 22.23MB memory