我刚刚开始使用安卓。
因此,当我尝试启动 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规格:
事情是这样的。仅使用 API 15 或更高版本的 AVD 设备支持主机 GPU。您还必须安装 Android SDK Tools 17 或更高版本。主机 GPU 也处于实验阶段。所有这些都在仿真文档中:http://developer.android.com/tools/devices/emulator.html http://developer.android.com/tools/devices/emulator.html
此外,您的机器必须支持 OpenGL(大多数都支持),如果您的机器具有独立的 GPU,即使它也可以与集成图形芯片组配合使用,您也会获得更好的结果。
如果您无法利用主机 GPU,请使用快照选项来获得一些性能提升。这将在模拟设备首次启动时拍摄内存快照,然后在设备首次启动时重用它。 (快照和主机 GPU 实际上是互斥的,尽管 ADV 允许您检查两者。)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)