gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-28 23:28:40 25 4
gpt4 key购买 nike

我刚开始使用 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

最佳答案

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

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

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

关于android - 启动 android 模拟器时出错:FB::flushWindowSurfaceColorBuffer: 未找到窗口句柄 0x4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25000723/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com