错误在启动Android模拟器:FB :: flushWindowSurfaceColorBuffer:窗口句柄为0x4未找到句柄、模拟器、未找到、窗口

2023-09-06 01:51:33 作者:剑下孤魂

我刚开始与Android合作。 所以,当我试图启动AVD(下面详细说明)它没有启动,只是黑屏一段时间,直到我厌倦了它,并关闭它。 我已经intelhaxm安装和Hyper-V禁用。

I just started working with android. So when i try to start the AVD (details below) it doesn't start, just a black screen for a time, until I get tired of it and shut it down. I have intelhaxm installed, and hyper-v disabled.

这是日志我得到形成控制台:

This is the log i got form the console:

[2014年7月28日二十时02分52秒 - APP2] --------------------------- --- [2014年7月28日二十点02分52秒 - APP2] Android的推出! [2014年7月28日二十点02分52秒 - APP2]亚洲开发银行运行正常。 [2014年7月28日二十点02分52秒 - APP2]执行com.example.app2.MainActivity活动启动 [2014年7月28日二十点02分52秒 - APP2]自动目标模式:preferred AVDTEST5不可用。启动新的仿真器。 [2014年7月28日二十点02分52秒 - APP2]启动一个新的仿真与虚拟设备TEST5 [2014年7月28日20点02分53秒 - 模拟器]仿真器:设备FD​​:1152 [2014年7月28日20点02分53秒 - 模拟器] [2014年7月28日20点02分53秒 - 模拟器] HAX是工作,仿真器快速的virt模式下运行 [2014年7月28日二十时02分55秒 - 模拟器]创建窗口0 0 480 800 [2014年7月28日二十时02分55秒 - APP2]研究发现新的模拟器:模拟器-5554 [2014年7月28日二十时02分55秒 - APP2]等待HOME('android.process.acore)即将推出... [2014年7月28日二十点03分00秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄为0x4未找到 [2014年7月28日二十点03分00秒 - 模拟器] FB:closeColorBuffer CB手柄0x3中未发现 [2014年7月28日20时03分06秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄0x8中未发现 [2014年7月28日20时03分06秒 - 模拟器] FB:closeColorBuffer CB手柄为0x7未找到 [2014年7月28日20时03分11秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄位于0xC未找到 [2014年7月28日20时03分11秒 - 模拟器] FB:closeColorBuffer CB手柄0XB未找到 [2014年7月28日20点03分十六秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄0X10未找到 [2014年7月28日20点03分十六秒 - 模拟器] FB:closeColorBuffer CB处理0xF的未找到 [2014年7月28日20时零三分21秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄0×14未找到 [2014年7月28日20时零三分21秒 - 模拟器] FB:closeColorBuffer CB手柄0x13未找到 [2014年7月28日20时03分26秒 - 模拟器] FB :: flushWindowSurfaceColorBuffer:窗口句柄为0x18未找到 [2014年7月28日20时03分26秒 - 模拟器] FB:closeColorBuffer CB手柄0x17已找不到 [2014年7月28日二十时03分30秒 - 模拟器]!错误接受连接,中止

[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说明:

推荐答案

这里的交易。主机GPU仅支持正在使用API​​ 15或更高版本的AVD设备。你还必须有Android的SDK工具17或更高版本。另外主机的GPU是实验性的。所有这一切都是在模拟文档中:http://developer.android.com/tools/devices/emulator.html

Here's the deal. Host GPU is only supported for AVD devices that are using API 15 or later. You also have to have Android SDK Tools 17 or later installed. Also Host GPU is experimental. All of this is in the emulation documentation: http://developer.android.com/tools/devices/emulator.html

此外,您的计算机是否具有支持OpenGL(大多数做),您将得到更好的结果,如果你的机器有一个独立的GPU,即使它会集成图形芯片组的正常工作。

Also your machine has to support OpenGL (most do) and you will get better results if your machine has a separate GPU even though it will work with integrated graphic chipsets as well.

如果你不能把主机GPU的优势,然后将快照选项,而不是获得一些性能提升。这将需要对仿真设备的初始启动的RAM的快照,然后再用它在设备的初始引导初创企业。 (快照和主机的GPU实际上是相互排斥的,即使ADV允许你检查两个。)

If you cannot take advantage of Host GPU then use the Snapshot option instead to gain some performance boost. This will take a snapshot of the ram on the initial start of the emulated device and then reuse it on initial boot start ups of the device. (Snapshot and Host GPU are actually mutually exclusive even though the ADV allows you to check both.)

 
精彩推荐
图片推荐