1

I am using 'android studio' for first time . Trying to run emulator but its take hours , doesn't show android mobile. Only its showing 'Android' in large text.

Screenshot 1

Screenshot 2

Screenshot 3

I read many blog and article , including How to fix: "HAX is not working and emulator runs in emulation mode"

But still don't have solutions.

Any help please.

Thanks

Community
  • 1
  • 1
hassan
  • 145
  • 2
  • 16
  • my problem was regarding HAX is not working or for AVD out of memory. And i already mention that, i read and try different solutions , which is not works. also included screenshot. That's the reason , i am here. If you can help me, which will be grate . – hassan Sep 30 '15 at 10:33
  • As mentioned by Shlublu, you need to make sure that AVD does not have higher memory limit than the HAXM. Either you can reduce AVD memory or you can increase HAXM memory by running HAXM installer again. Solution is already mentioned here http://stackoverflow.com/a/29288735/2073920 – Abdul Rauf Sep 30 '15 at 10:46
  • @hassan How much assigned memory do you end up with? – Shlublu Oct 01 '15 at 06:20
  • i tried with 896mb and 1 GB ram, in both way don't work it. – hassan Oct 01 '15 at 12:22
  • @hassan Maybe you should give a try with a smaller device, like a generic one. – Shlublu Oct 06 '15 at 07:59
  • I have exactly the same issue on windows7 – Stepan Yakovenko Nov 27 '15 at 16:33

2 Answers2

0

The HAXM memory limit has to cover more than the memory assigned to you virtual device.

According to the log above, the amount of memory assigned to the device ("AVD RAM size", set to 1536MB) exceeds the memory limit of HAXM ("Max RAM size", currently set to 512MB). You have to adjust that: by running the HAXM installer, you can set the "Max RAM size" limit to 2048MB (or more should your physical machine be able to handle that) instead of the 512MB currently handled.

-> HAXM installer documentation: for Windows - for MacOS X

If your physical machine cannot afford assigning 2048MB or more to HAXM, assign as much as you reasonably can to HAXM (mine is 1024MB), and assign less memory to your virtual device. Be careful though, on my side I couldn't have a API 23 emulator running well with less than 768MB assigned (and 64MB for the heap).

-> To change the memory settings of your virtual device, you have to go to the "Android Virtual Device (AVD) Manager", and then to edit your device. I highlighted this in the picture below.

enter image description here

I'm using Eclipse, but the process should be similar under Android Studio.

Shlublu
  • 10,917
  • 4
  • 51
  • 70
  • Hi , Thanks for your sugession. please can you tell me , how can assigned memory size ? Is that tools -> AVD Manager, – hassan Sep 30 '15 at 10:28
  • 1
    @hassan You have to use the virtual device manager. I included a screenshot to my answer. But you also have to run the HAXM installer to increase its own memory limit. – Shlublu Sep 30 '15 at 10:34
  • Yes, i set same ram size and other settings , but still not works :( – hassan Oct 01 '15 at 00:11
0

If you wish to work with Android Studio built in AVD then consider installing Intel x86 Emulator Accelerator (HAXM). To find it, open Tools>Android>SDK Manager, then scroll down on the screen to Extras. You will see it as a last option. This would speed up things for better. enter image description here Much better solution will be to use genymotion. You can install it for free and it's way faster. https://www.genymotion.com/#!/developers/user-guide

justLearning
  • 299
  • 2
  • 7