从源代码构建的 Android 模拟器无法启动
我下载了 Android 源代码并构建了版本 2.3.7(用于模拟器),其中的指南如下: http://source.android.com/source/building.html
没有完成错误,我在输出文件夹中得到了三个 .img 文件(总共约 86 MB)。
然后我输入“emulator
”命令来启动模拟器。 但模拟器就是无法启动。它卡在黑屏上,CPU 运行率为 100%。 我等了大约10分钟,它仍然没有启动。
有人知道为什么吗?
I downloaded the Android source and built version 2.3.7 (for emulator) with the guide in :
http://source.android.com/source/building.html
It finished with no errors and I got three .img files (about 86 MB total) in the output folder.
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.
Does anybody know why?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了和你类似的问题。
我不运行模拟器,而是运行以下命令:
out/host/linux-x86/bin/emulator -sysdir out/target/product/generic/ -system out/target/product/generic/system.img -ramdisk out/target/产品/通用/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/android-arm/kernel/kernel-qemu-armv7
我的问题得到了解决。
I got similar problem as u.
Instead of running emulator, I run below command:
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
Then I change the bold to prebuilt/android-arm/kernel/kernel-qemu-armv7
And my problem was fixed.