Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Problem while launching AVD in emulator

emulator: device fd:660 HAXM is not working and emulator runs in emulation mode emulator: The memory needed by this AVD exceeds the max specified in your HAXM configuration. emulator: AVD RAM size = 1024 MB emulator: HAXM max RAM size = 512 MB emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode. creating window 36 48 271 482 emulator: UpdateChecker: skipped version check

I am getting above messsage ..which I am not able to understand and .in emulator lock screen is not coming

2 Answers

Harry James
Harry James
14,780 Points

Hey Tushar!

This error means that you have not allocated sufficient memory/RAM for the emulator to function. You can change the amount of RAM via the AVD Manager by clicking on its icon (A purple mobile with an Android icon beside it), clicking the Edit icon beside the emulator you are using (A pencil icon), pressing the Show advanced settings button and then updating the RAM field to a higher number:

Note: You can not allocate more RAM than your computer has. If you need to check the amount of RAM your computer has, you can do this on a Windows system by right-clicking on Computer and pressing Properties. If using Windows 10, you should right-click on the Start Menu and press System. Then, look at the Installed memory (RAM) figure. 1GB is equivalent to 1024mb.


Hopefully this should fix the issue for you but if you run into any more problems or you need some help, give me a shout :)

yeah i did that ...I gave less than 1gb..My system Ram is 4gb.But still the problem persist.And at the same time I am not able to see the lock screen on emulator

Harry James
Harry James
14,780 Points

Hey Tushar,

Could you please try allocating more than 1gb of RAM?

Note that since your system RAM is only 4gb, you may struggle with running the emulator and in fact, the Visual Studio Emulator for Android has a System requirement of 6gb of RAM.

Another thing you can try is running an older API version as an Emulator, the older versions of Android tend to use up less resources, and your system may be able to run them.

Alternatively, you can always use a physical device, if you have one available.


Best of luck! :)