Android 模拟器启动时冻结
我正在尝试使用 Eclipse 3.7 在 Ubuntu 11.10 x64 上运行 Android 模拟器。我已经安装了 SDK(Eclipse 的插件),设置了 PATH 变量以包含 android-sdk 路径,安装了 32 位库,并创建了一个要运行的 AVD。然而,当我进入“调试”或“运行”时,我的系统挂起:
Waiting for HOME ('android.process.acore') to be launch
我见过其他人挂起,解决方案通常是“检查Logcat”(我这里没有消息),“在 AVD 中为 SD 卡添加一个值”(我已经这样做了)或“等一会儿 - 它最终会发生”(我让它运行了一夜,仍然没有骰子)。
还有其他想法吗?非常感谢!
编辑:
我还应该提到,我尝试重新启动应用程序,这是另一个普遍建议的解决方案。另外,模拟器的视图启动了,但我从来没有在模拟器窗口内得到任何东西(例如,我从来没有看到 ANDROID),以防万一这有帮助。
这是 -verbose
的结果
emulator: found SDK root at /home/devon/android-sdks
emulator: Android virtual device file at: /home/devon/.android/avd/Test.ini
emulator: virtual device content at /home/devon/.android/avd/Test.avd
emulator: virtual device config file: /home/devon/.android/avd/Test.avd/config.ini
emulator: using core hw config path: /home/devon/.android/avd/Test.avd/hardware-qemu.ini
emulator: Found AVD target API level: 8
emulator: found skin 'WVGA800' in directory: /home/devon/android-sdks/platforms/android-8/skins
emulator: autoconfig: -skin WVGA800
emulator: autoconfig: -skindir /home/devon/android-sdks/platforms/android-8/skins
emulator: keyset loaded from: /home/devon/.android/default.keyset
emulator: trying to load skin file '/home/devon/android-sdks/platforms/android-8/skins/WVGA800/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: autoconfig: -kernel /home/devon/android-sdks/platforms/android-8/images//kernel-qemu
emulator: autoconfig: -ramdisk /home/devon/android-sdks/platforms/android-8/images//ramdisk.img
emulator: Using initial system image: /home/devon/android-sdks/platforms/android-8/images//system.img
emulator: autoconfig: -data /home/devon/.android/avd/Test.avd/userdata-qemu.img
emulator: autoconfig: -initdata /home/devon/.android/avd/Test.avd/userdata.img
emulator: autoconfig: -cache /home/devon/.android/avd/Test.avd/cache.img
emulator: autoconfig: -sdcard /home/devon/.android/avd/Test.avd/sdcard.img
emulator: Physical RAM size: 128MB
Content of hardware configuration file:
hw.cpu.arch = arm
hw.cpu.model =
hw.ramSize = 128
hw.touchScreen = yes
hw.mainKeys = yes
hw.trackBall = yes
hw.keyboard = yes
hw.keyboard.lid = yes
hw.keyboard.charmap = qwerty2
hw.dPad = yes
hw.gsmModem = yes
hw.camera = no
hw.camera.maxHorizontalPixels = 640
hw.camera.maxVerticalPixels = 480
hw.gps = yes
hw.battery = yes
hw.accelerometer = yes
hw.audioInput = yes
hw.audioOutput = yes
hw.sdCard = yes
hw.sdCard.path = /home/devon/.android/avd/Test.avd/sdcard.img
disk.cachePartition = yes
disk.cachePartition.path = /home/devon/.android/avd/Test.avd/cache.img
disk.cachePartition.size = 66m
hw.lcd.width = 480
hw.lcd.height = 800
hw.lcd.depth = 16
hw.lcd.density = 240
hw.lcd.backlight = yes
hw.gpu.enabled = no
hw.fakeCamera = back
hw.webcam.count = 6
hw.webcam.0.name = webcam0
hw.webcam.1.name = webcam1
hw.webcam.2.name = webcam2
hw.webcam.3.name = webcam3
hw.webcam.4.name = webcam4
hw.webcam.5.name = webcam5
hw.webcam.0.direction = front
hw.webcam.1.direction = back
hw.webcam.2.direction = front
hw.webcam.3.direction = front
hw.webcam.4.direction = front
hw.webcam.5.direction = front
vm.heapSize = 24
hw.sensors.proximity = yes
kernel.path = /home/devon/android-sdks/platforms/android-8/images//kernel-qemu
kernel.parameters = android.checkjni=1
disk.ramdisk.path = /home/devon/android-sdks/platforms/android-8/images//ramdisk.img
disk.systemPartition.initPath = /home/devon/android-sdks/platforms/android-8/images//system.img
disk.systemPartition.size = 78m
disk.dataPartition.path = /home/devon/.android/avd/Test.avd/userdata-qemu.img
disk.dataPartition.size = 66m
disk.snapStorage.path =
avd.name = Test
.
QEMU options list:
emulator: argv[00] = "/home/devon/android-sdks/tools/emulator-arm"
emulator: argv[01] = "-android-hw"
emulator: argv[02] = "/home/devon/.android/avd/Test.avd/hardware-qemu.ini"
Concatenated QEMU options:
/home/devon/android-sdks/tools/emulator-arm -android-hw /home/devon/.android/avd/Test.avd/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: nand_add_dev: system,size=0x4e00000,initfile=/home/devon/android-sdks/platforms/android-8/images//system.img
emulator: mapping 'system' NAND image to /tmp/android-devon/emulator-wbKapY
emulator: rounding devsize up to a full eraseunit, now 4e1e000
emulator: nand_add_dev: userdata,size=0x4200000,file=/home/devon/.android/avd/Test.avd/userdata-qemu.img
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '240'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: nand_add_dev: cache,size=0x4200000,file=/home/devon/.android/avd/Test.avd/cache.img
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
emulator: Trace file name is not set
emulator: autoconfig: -scale 1
emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Connection refused
emulator: ping program: /home/devon/android-sdks/tools/ddms
emulator: ping command: /home/devon/android-sdks/tools/ddms ping emulator 15.0
I am trying to run an Android emulator on Ubuntu 11.10 x64 with Eclipse 3.7. I have installed the SDK, the plugin for Eclipse, have set my PATH variables to include the android-sdk paths, installed the 32 bit libraries, and have created an AVD to run. When I go to Debug or Run however, my system hangs on:
Waiting for HOME ('android.process.acore') to be launched
I have seen other people hang and the solution is usually "check the Logcat" (I have no message here), "add a value for the SD Card in the AVD" (I have done this) or "Wait a while - it will happen eventually" (I let it run over night and still no dice).
Are there any other ideas? Thanks so much!
EDIT:
I should also mention that I have tried relaunching the application which was another commonly suggested solution. Also, the view for the emulator launches, but I never get anything inside of the emulator window (I never see A N D R O I D for example) in case this helps.
Here is the result of -verbose
emulator: found SDK root at /home/devon/android-sdks
emulator: Android virtual device file at: /home/devon/.android/avd/Test.ini
emulator: virtual device content at /home/devon/.android/avd/Test.avd
emulator: virtual device config file: /home/devon/.android/avd/Test.avd/config.ini
emulator: using core hw config path: /home/devon/.android/avd/Test.avd/hardware-qemu.ini
emulator: Found AVD target API level: 8
emulator: found skin 'WVGA800' in directory: /home/devon/android-sdks/platforms/android-8/skins
emulator: autoconfig: -skin WVGA800
emulator: autoconfig: -skindir /home/devon/android-sdks/platforms/android-8/skins
emulator: keyset loaded from: /home/devon/.android/default.keyset
emulator: trying to load skin file '/home/devon/android-sdks/platforms/android-8/skins/WVGA800/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: autoconfig: -kernel /home/devon/android-sdks/platforms/android-8/images//kernel-qemu
emulator: autoconfig: -ramdisk /home/devon/android-sdks/platforms/android-8/images//ramdisk.img
emulator: Using initial system image: /home/devon/android-sdks/platforms/android-8/images//system.img
emulator: autoconfig: -data /home/devon/.android/avd/Test.avd/userdata-qemu.img
emulator: autoconfig: -initdata /home/devon/.android/avd/Test.avd/userdata.img
emulator: autoconfig: -cache /home/devon/.android/avd/Test.avd/cache.img
emulator: autoconfig: -sdcard /home/devon/.android/avd/Test.avd/sdcard.img
emulator: Physical RAM size: 128MB
Content of hardware configuration file:
hw.cpu.arch = arm
hw.cpu.model =
hw.ramSize = 128
hw.touchScreen = yes
hw.mainKeys = yes
hw.trackBall = yes
hw.keyboard = yes
hw.keyboard.lid = yes
hw.keyboard.charmap = qwerty2
hw.dPad = yes
hw.gsmModem = yes
hw.camera = no
hw.camera.maxHorizontalPixels = 640
hw.camera.maxVerticalPixels = 480
hw.gps = yes
hw.battery = yes
hw.accelerometer = yes
hw.audioInput = yes
hw.audioOutput = yes
hw.sdCard = yes
hw.sdCard.path = /home/devon/.android/avd/Test.avd/sdcard.img
disk.cachePartition = yes
disk.cachePartition.path = /home/devon/.android/avd/Test.avd/cache.img
disk.cachePartition.size = 66m
hw.lcd.width = 480
hw.lcd.height = 800
hw.lcd.depth = 16
hw.lcd.density = 240
hw.lcd.backlight = yes
hw.gpu.enabled = no
hw.fakeCamera = back
hw.webcam.count = 6
hw.webcam.0.name = webcam0
hw.webcam.1.name = webcam1
hw.webcam.2.name = webcam2
hw.webcam.3.name = webcam3
hw.webcam.4.name = webcam4
hw.webcam.5.name = webcam5
hw.webcam.0.direction = front
hw.webcam.1.direction = back
hw.webcam.2.direction = front
hw.webcam.3.direction = front
hw.webcam.4.direction = front
hw.webcam.5.direction = front
vm.heapSize = 24
hw.sensors.proximity = yes
kernel.path = /home/devon/android-sdks/platforms/android-8/images//kernel-qemu
kernel.parameters = android.checkjni=1
disk.ramdisk.path = /home/devon/android-sdks/platforms/android-8/images//ramdisk.img
disk.systemPartition.initPath = /home/devon/android-sdks/platforms/android-8/images//system.img
disk.systemPartition.size = 78m
disk.dataPartition.path = /home/devon/.android/avd/Test.avd/userdata-qemu.img
disk.dataPartition.size = 66m
disk.snapStorage.path =
avd.name = Test
.
QEMU options list:
emulator: argv[00] = "/home/devon/android-sdks/tools/emulator-arm"
emulator: argv[01] = "-android-hw"
emulator: argv[02] = "/home/devon/.android/avd/Test.avd/hardware-qemu.ini"
Concatenated QEMU options:
/home/devon/android-sdks/tools/emulator-arm -android-hw /home/devon/.android/avd/Test.avd/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: nand_add_dev: system,size=0x4e00000,initfile=/home/devon/android-sdks/platforms/android-8/images//system.img
emulator: mapping 'system' NAND image to /tmp/android-devon/emulator-wbKapY
emulator: rounding devsize up to a full eraseunit, now 4e1e000
emulator: nand_add_dev: userdata,size=0x4200000,file=/home/devon/.android/avd/Test.avd/userdata-qemu.img
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '240'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: nand_add_dev: cache,size=0x4200000,file=/home/devon/.android/avd/Test.avd/cache.img
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=1
emulator: Trace file name is not set
emulator: autoconfig: -scale 1
emulator: control console listening on port 5554, ADB on port 5555
emulator: can't connect to ADB server: Connection refused
emulator: ping program: /home/devon/android-sdks/tools/ddms
emulator: ping command: /home/devon/android-sdks/tools/ddms ping emulator 15.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事实证明问题出在 VirtualBox 上(抱歉,我没有想到提及这一点)。取消选中
3D Acceleration
会使模拟器正确运行。Turns out the problem was with VirtualBox (didn't think to mention this, sorry). Unchecking
3D Acceleration
caused the emulator to run correctly.尝试通过以下命令在命令行上启动模拟器:
(在此之前先cd到你的android sdk的工具文件夹)
emulator -avd avdname
Try starting your emulator on the command line by this command :
(cd to your tools folder of your android sdk before that)
emulator -avd avdname
对我来说,解决方案是模拟器停留在等待 HOME('android.process.acore')启动的状态。
再次启动您的应用程序。现在它将开始安装您的应用程序。
或者您可以尝试从 AVD 管理器启动模拟器。
For me the solution was while the emulator stuck on Waiting for HOME ('android.process.acore') to be launched.
Launch your app again.and now it will start installing your app.
or you can try starting emulator from AVD manager.