首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >启动android模拟器时出错: FB::flushWindowSurfaceColorBuffer:找不到窗口句柄0x4

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

Stack Overflow用户
提问于 2014-07-29 01:23:39
回答 1查看 19K关注 0票数 20

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

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

代码语言:javascript
复制
[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规格:

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-08-04 04:54:58

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

此外,你的机器必须支持OpenGL (大多数都支持),如果你的机器有一个单独的图形处理器,即使它也可以与集成的图形芯片组一起工作,你也会得到更好的结果。

如果您不能利用主机GPU的优势,那么使用快照选项来获得一些性能提升。这将在仿真设备的初始启动时拍摄ram的快照,然后在设备的初始引导启动时重新使用它。(快照和主机GPU实际上是互斥的,即使ADV允许您同时检查两者。)

票数 44
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25000723

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档