【发布时间】:2012-02-19 19:40:33
【问题描述】:
我能够将最新的 android 源代码下载到 32 位 Ubuntu 虚拟机中(主机:Windows 7 64 位)。构建完成,没有任何错误。
然后我尝试关注these instructions,其中提到我应该在源代码的根目录上运行模拟器。但是,当我尝试这样做时,我收到一条错误消息,指出找不到此命令。
所以我去了out/host/linux-x86/bin文件夹,发现emulator*有几个文件:
emulatoremulator-armemulator_rendereremulator-uiemulator-x86
当我在这里输入emulator 和emulator-x86 时,它也不起作用。这是我得到的错误:
xxxx/out/host/linux-x86/bin$ ./emulator-x86
emulator: ERROR: You did not specify a virtual device name, and the system
directory could not be found.
If you are an Android SDK user, please use '@<name>' or '-avd <name>'
to start a given virtual device (see -help-avd for details).
Otherwise, follow the instructions in -help-disk-images to start the emulator
所以当我运行./emulator-x86 -help-disk-images 时,我看到以下内容:
If you are building from the Android build system, you should
have ANDROID_PRODUCT_OUT defined in your environment, and the
emulator shall be able to pick-up the right image files automatically.
See -help-build-images for more details.
我自己构建了这个,所以我认为ANDROID_PRODUCT_OUT 设置在我的环境变量中,但我没有看到它。所以我认为我应该运行一些其他的 shell 脚本来获取该设置。
我查看了img 文件,我在out/target/product/generic 的位置看到了情侣:
ramdisk.imgsystem.imguserdata.img
任何人都可以对此有所了解并帮助我下一步应该做什么吗?我是 Android 新手,对此进行了一些研究,但找不到任何类似的问题。
【问题讨论】:
标签: android android-emulator linux-kernel