android emulator built from source won't boot up

天大地大妈咪最大 提交于 2020-01-04 21:38:17

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8161383/android-emulator-built-from-source-wont-boot-up

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!