2012-05-14 28 views
4

所以我已經成功下載源代碼,成功構建它,並且可以成功運行模擬器。然而,它從來沒有啓動到實際的圖像。相反,我看着終端,它給了我以下錯誤。構建後如何運行Android模擬器?

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 !!! 

我在運行Ubuntu 10.04,在虛擬盒子裏面。啓用3D加速並且至少有16GB專用於該盒子的RAM。

基本上,仿真器只是坐在那裏好一段時間,然後在模擬器窗口周圍繪製一個紅色矩形。

+1

所以你有一個運行Ubuntu的虛擬機,在其中啓動了另一個虛擬機(android) - 這不起作用? [在黑暗中拍攝](http://developer.android.com/guide/developing/devices/emulator.html):_「不在虛擬機內部 - 不能在另一個虛擬機內運行VM加速模擬器,例如作爲VirtualBox或VMWare託管的虛擬機,您必須直接在您的系統硬件上運行仿真器。「_ –

+0

嗯,我猜想總結一下,是的,這就是我正在做的。我想我至少還可以做。感謝您的鏈接 – meanbunny

+1

禁用加速功能無法選擇嗎? –

回答

6

Using the Android Emulator|Configuring VM Acceleration

內部沒有一個虛擬機 - 您不能運行其他虛擬機,如VirtualBox或VMWare的託管虛擬機內部虛擬機加速仿真器。您必須直接在系統硬件上運行仿真器。

因此禁用3D加速,它應該工作。

另一種可能的選擇:setup port forwarding。您應該能夠在主機系統上運行Android VM,並設置監聽其adb服務器實例以偵聽TCP連接請求。在Ubuntu實例中,告訴adb連接到特定的地址。您需要以某種方式設置從它轉發到它的主機。如果這可行,您可以使用加速的Android VM實例。