Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
549 views
in Technique[技术] by (71.8m points)

opengl - How do I run the Android Emulator after a Build?

So I have download the source code successfully, built it successfully, and can run the emulator successfully. However it never boots into the actual image. Instead I look at the terminal and it gives me the following error.

OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2deae10
OpenGL Warning: Retry with 0x105 returned 1 visuals
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
destroyOpenGLSubwindow not implemented for separate renderer process !!!
createOpenGLSubwindow not implemented for separate renderer process !!!
repaintOpenGLDisplay not implemented for separate renderer process !!!
createOpenGLSubwindow not implemented for separate renderer process !!!
repaintOpenGLDisplay not implemented for separate renderer process !!!

I am running Ubuntu 10.04, inside of Virtual Box. With 3D Acceleration enabled and at least 16GB of ram dedicated to the box.

Basically the emulator just sits there for a good while and then draws a red rectangle around the emulator window.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

From Using the Android Emulator|Configuring VM Acceleration:

Not Inside a VM - You cannot run a VM-accelerated emulator inside another virtual machine, such as a VirtualBox or VMWare-hosted virtual machine. You must run the emulator directly on your system hardware.

So disable 3D acceleration and it should work.

Another possible option: setup port forwarding. You should be able to run the Android VM on the host system and setup listening of its adb server instance to listen to TCP connection requests. Inside the Ubuntu instance, tell adb to connect to a specific address. You'd need to setup a forwarding from it to its host somehow. If this works, you could use an accelerated Android VM instance.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...