Android Emulator on Eclipse Not Working

2019-06-25 13:16发布

问题:

I've been following the instructions found at http://developer.android.com/training/basics/firstapp/running-app.html to run the Hello World app on Eclipse's AVD, but the AVD does not launch and I get the following messages:

[2013-01-20 00:20:59 - MyFirstApp] ------------------------------
[2013-01-20 00:20:59 - MyFirstApp] Android Launch!
[2013-01-20 00:20:59 - MyFirstApp] adb is running normally.
[2013-01-20 00:20:59 - MyFirstApp] Performing com.example.myfirstapp.MainActivity      activity launch
[2013-01-20 00:21:00 - MyFirstApp] Automatic Target Mode: launching new emulator with     compatible AVD 'TestAVD'
[2013-01-20 00:21:00 - MyFirstApp] Launching a new emulator with Virtual Device    'TestAVD'
[2013-01-20 00:21:48 - Emulator] Failed to create Context 0x3005
[2013-01-20 00:21:48 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-20 00:21:48 - Emulator] Failed to allocate memory: 8
[2013-01-20 00:21:48 - Emulator] 
[2013-01-20 00:21:48 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-01-20 00:21:48 - Emulator] Please contact the application's support team for more information.

Also, an error window popped up saying that the ARM emulator exe has stopped working. Any thoughts?

回答1:

OP of this thread has similar error message,

emulator: WARNING: Could not initialize OpenglES emulation, using software renderer

Hope it helps!



回答2:

Check 2 things:

  • That you are using 512MB of RAM (the emulator doesn't work properly with more)
  • Try turning 'Host GPU' off


回答3:

Try running emulator from the command line with GPU option and make sure that it is working or not.

-gpu off

Even if it result into the error, go to the eclipse, Right Click on the project and select run my projects as an "Android application". Emulator should start.

You can also give a try with enabling/disabling GPU emulation option for the selected emulator from the AVD manager.

To enable/disable GPU emulation :

Goto AVD manager -> select android virtual device -> click on Edit -> Hardware tab -> enable/disable GPU emulation.

Hope it will work.



回答4:

I got this error when trying to run an emulator with a higher resolution than I had my display set to.