启动android模拟器时出错:FB :: flushWindowSurfaceColorBuffer:找不到窗口句柄0x4

时间:2014-07-28 17:23:39

标签: android android-emulator

我刚开始使用android。 因此,当我尝试启动AVD(详情如下)时,它不会启动,只是黑屏一段时间,直到我厌倦了它并关闭它。 我安装了intelhaxm,并禁用了hyper-v。

这是我从控制台获得的日志:

[2014-07-28 20:02:52 - app2] ------------------------------
[2014-07-28 20:02:52 - app2] Android Launch!
[2014-07-28 20:02:52 - app2] adb is running normally.
[2014-07-28 20:02:52 - app2] Performing com.example.app2.MainActivity activity launch
[2014-07-28 20:02:52 - app2] Automatic Target Mode: Preferred AVD 'Test5' is not available. Launching new emulator.
[2014-07-28 20:02:52 - app2] Launching a new emulator with Virtual Device 'Test5'
[2014-07-28 20:02:53 - Emulator] emulator: device fd:1152
[2014-07-28 20:02:53 - Emulator] 
[2014-07-28 20:02:53 - Emulator] HAX is working and emulator runs in fast virt mode
[2014-07-28 20:02:55 - Emulator] creating window 0 0 480 800
[2014-07-28 20:02:55 - app2] New emulator found: emulator-5554
[2014-07-28 20:02:55 - app2] Waiting for HOME ('android.process.acore') to be launched...
[2014-07-28 20:03:00 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0x4 not found
[2014-07-28 20:03:00 - Emulator] FB: closeColorBuffer cb handle 0x3 not found
[2014-07-28 20:03:06 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0x8 not found
[2014-07-28 20:03:06 - Emulator] FB: closeColorBuffer cb handle 0x7 not found
[2014-07-28 20:03:11 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0xc not found
[2014-07-28 20:03:11 - Emulator] FB: closeColorBuffer cb handle 0xb not found
[2014-07-28 20:03:16 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0x10 not found
[2014-07-28 20:03:16 - Emulator] FB: closeColorBuffer cb handle 0xf not found
[2014-07-28 20:03:21 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0x14 not found
[2014-07-28 20:03:21 - Emulator] FB: closeColorBuffer cb handle 0x13 not found
[2014-07-28 20:03:26 - Emulator] FB::flushWindowSurfaceColorBuffer: window handle 0x18 not found
[2014-07-28 20:03:26 - Emulator] FB: closeColorBuffer cb handle 0x17 not found
[2014-07-28 20:03:30 - Emulator] Error accepting connection, aborting!`

AVD规格:

AVD Specifications

1 个答案:

答案 0 :(得分:44)

这是交易。仅使用API​​ 15或更高版本的AVD设备支持主机GPU。您还必须安装Android SDK Tools 17或更高版本。主机GPU也是实验性的。所有这些都在仿真文档中:http://developer.android.com/tools/devices/emulator.html

此外,您的机器必须支持OpenGL(大多数情况下),如果您的机器具有单独的GPU,即使它也可以与集成图形芯片组一起使用,您将获得更好的结果。

如果您无法利用主机GPU,请使用“快照”选项来获得一些性能提升。这将在模拟设备的初始启动时获取ram的快照,然后在设备的初始启动启动时重复使用它。 (快照和主机GPU实际上是互斥的,即使ADV允许您同时检查两者。)