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

Failed to launch emulator of application" Crystal Ball"

During the video "Android Setup and the Crystal Ball Project", I created an AVD of Android4.4 according to teacher's note. However, when I click run button, the initiation just failed. Words in console just showed : Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. emulator: WARNING: Requested RAM size of 1024MB is too large for your environment, and is reduced to 768MB. Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.


I wonder if anyone has faced the same problem as I did? I can't lauch the android emulator. I use windows XP system and I unzipped the bundle in F:/Media/XX directory.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

The error "Requested RAM size of 1024MB is too large" indicates that perhaps a smaller setting there would work. Try creating a new AVD with 512 MB RAM (or even 256) like this:

Imgur

Thanks a lot!! this problem was solved successfully. Well, my computer runs so slow that I have to emulate apps on my android cellphone instead. :)

Ben Jakuben
Ben Jakuben
Treehouse Teacher

Been there, too! Check out Genymotion, which works way better than the default Emulator. I cover it in the Android Tools course.