Android模拟器,挂在启动时? [英] Android emulator hanging on startup?

查看:124
本文介绍了Android模拟器,挂在启动时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经修改/编辑Android平台的一部分,但想测试我的编辑时遇到问题。使我改变平台的源代码后,我是能够成功地编译源 - 从而创造system.img,的ramdisk.img和userdata.img。

I've been modifying/editing parts of the Android platform, but have run into a problem when trying to test my edits. After making my changes to the platform source, I was able to successfully compile the source - thus creating system.img, ramdisk.img, and userdata.img.

当我走在模拟器测试,仿真器只是挂起了ANDROID_屏幕上,用下划线闪烁,但似乎永远不会加载。有什么建议?

When I go to test this in the emulator, the emulator just hangs on the "ANDROID_" screen, with the underscore blinking, but never seems to load. Any suggestions?

我用来运行模拟器的命令如下:

The command I used to run the emulator is as follows:

./模拟器 - 系统$ HOME /安卓/平台/缩小/目标/产品/通用/ system.img -ramdisk $ HOME /安卓/平台/缩小/目标/产品/通用/ RAMDISK .IMG -data $ HOME /安卓/平台/缩小/目标/产品/通用/ userdata.img

./emulator -system $HOME/android/platform/out/target/product/generic/system.img -ramdisk $HOME/android/platform/out/target/product/generic/ramdisk.img -data $HOME/android/platform/out/target/product/generic/userdata.img

谢谢,
克里斯

Thanks,
Chris

推荐答案

第一次启动可能需要一段时间,特别是在一个缓慢的机器,但以其他方式尝试运行的亚行logcat命令来查看日志输出。这将帮助你确定是什么问题可能。

The first startup can take a while, especially on a slow machine but otherwise try running the adb logcat command to see the log output. That will help you determine what the problem could be.

另外,如果你想跳过提供给仿真器,即 - 系统,你可以使用build文件夹中提供的脚本,其他所有选项。从开源项目的根文件夹中运行以下命令:

Also if you like to skip supplying all the options to the emulator, i.e. -system and the other you can use the scripts supplied in the build folder. Run these commands from the open source project root folder:

source build/envsetup.sh
setpaths

第一个将运行envsetup脚本为Android,它提供了一些有用的命令。第二个设置所有需要为Android平台开发的路径。其中包括,通知仿真器到哪里寻找构建图像ANDROID_PRODUCT_OUT变量。它被设置为您在上面指定的默认​​文件夹。运行setpaths后,你只可以通过在命令行下输入模拟器开始构建模拟器。

The first one will run the envsetup script for Android that supplies a number of helpful commands. The second one sets up all the paths needed for Android platform development. Among them are the ANDROID_PRODUCT_OUT variable that informs the emulator where to look for the build images. It is set to the default folders that you have specified above. After running setpaths you can just start the emulator with your build by typing emulator on the command line.

这篇关于Android模拟器,挂在启动时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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