How to run Android emulator after build?

So, I successfully downloaded the source code, successfully built it, and successfully run the emulator. However, it never loads into the actual image. Instead, I look at the terminal and this 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 a virtual box. With 3D acceleration enabled and at least 16 GB of RAM allocated for this window.

Basically, the emulator just sits there well, and then draws a red rectangle around the emulator window.

+4
source share
1 answer

From Using Android Emulator | Configure VM Acceleration :

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

So turn off 3D acceleration and it should work.

Another possible option is to configure port forwarding . You should be able to run the Android virtual machine on the host system and configure listening on your adb server instance to listen for TCP connection requests. Inside the Ubuntu instance, tell adb to connect to a specific address. You will need to configure forwarding from it to your host. If this works, you can use an accelerated instance of the Android virtual machine.

+6
source

Source: https://habr.com/ru/post/1412301/


All Articles