从源代码构建Android模拟器将无法启动 [英] android emulator built from source won't boot up

查看:221
本文介绍了从源代码构建Android模拟器将无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载的指南中的Andr​​oid源和内置版本2.3.7(对于仿真器):
http://source.android.com/source/building.html

I downloaded the Android source and built version 2.3.7 (for emulator) with the guide in : http://source.android.com/source/building.html

它完成,没有错误,我在输出文件夹中有三个.IMG文件(约86 MB计)。

It finished with no errors and I got three .img files (about 86 MB total) in the output folder.

然后我输入仿真器命令来启动模拟器。
但仿真器就不会启动。它是停留在一个黑色的屏幕与CPU运行在100%。
我等了大约10分钟,它仍然没有启动。

Then I typed "emulator" command to start an emulator. But the emulator just won't boot up. It was stuck at a black screen with CPU running at 100%. I waited for about 10 mins and it still did not boot up.

有谁知道为什么吗?

推荐答案

我有类似的问题,如u

I got similar problem as u.

而不是运行模拟器,我运行下面的命令:

Instead of running emulator, I run below command:

出/主机/ Linux的的x86 /斌/模拟器-sysdir输出/目标/产品/通用/ -system输出/目标/产品/通用/ system.img -ramdisk输出/目标/产品/通用/的ramdisk.img - 数据输出/目标/产品/通用/ userdata.img -kernel prebuilt /机器人臂/内核/内核QEMU -sdcard sdcard.img -skindir SDK /模拟器/皮肤-skin WVGA800 -scale 0.7 -Memory 512 -partition,大小为1024

out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -system out/target/product/generic/system.img -ramdisk out/target/product/generic/ramdisk.img -data out/target/product/generic/userdata.img -kernel prebuilt/android-arm/kernel/kernel-qemu -sdcard sdcard.img -skindir sdk/emulator/skins -skin WVGA800 -scale 0.7 -memory 512 -partition-size 1024

然后我改变了大胆的 prebuilt /机器人臂/内核/内核的qemu-的ARMv7

和我的问题是固定的。

这篇关于从源代码构建Android模拟器将无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆