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

Emulator doesn't run in Android Studio

I'm getting below message on Windows 7 computer with 4GB ram, trying to emulate Galaxy Nexus. Would appreciate any suggestion.

C:\Users\ThinkCentre\Android\sdk\tools\emulator.exe -avd Galaxy_Nexus_API_22 -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:620 HAX 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 = 640 MB emulator: You might want to adjust your AVD RAM size and/or HAXM configuration to run in fast virt mode. emulator: warning: opening audio input failed creating window 128 142 481 854 emulator: emulator window was out of view and was recentered

1 Answer

I changed HAXM max RAM size to 1048 MB, and emulator is running now.