Android模拟器在Windows 7上挂起,没有任何错误消息

时间:2011-04-24 07:54:26

标签: android emulation

**注意:我不再使用此环境,因此我无法测试答案并接受答案。对不起。 **

我知道我的问题有很多答案,但他们都要求记录消息中的错误,我在日志中看不到任何错误。

我正在尝试在Windows 7中运行emulator.exe。(1)

我尝试用vervose运行模拟器。日志在下面,理论上最重要的消息是最后一个,尽管我没有看到它们的任何重要性:

C:\Users\ASUS\workspace\Android\android-sdk\tools>emulator.exe -avd 22 -verbose
emulator: found SDK root at C:\Users\ASUS\workspace\Android\android-sdk
emulator: root virtual device file at C:\Users\ASUS\.android/avd/22.ini
emulator: virtual device content at C:\Users\ASUS\.android\avd\22.avd
emulator: virtual device config file: C:\Users\ASUS\.android\avd\22.avd/config.ini
emulator:     locking user data image at C:\Users\ASUS\.android\avd\22.avd/userdata-qemu.img
emulator:     locking cache image at C:\Users\ASUS\.android\avd\22.avd/cache.img
emulator:     locking SD Card image at C:\Users\ASUS\.android\avd\22.avd/sdcard.img
emulator: ignoring non-existing snapshots at C:\Users\ASUS\.android\avd\22.avd/snapshots.img: No such file or directory
emulator: found skin 'QVGA' in directory: C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\skins
emulator: autoconfig: -skin QVGA
emulator: autoconfig: -skindir C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\skins
emulator: keyset loaded from: C:\Users\ASUS\.android\default.keyset emulator: trying to load skin file 'C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\skins/QVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
QEMU options list:
emulator: argv[00] = "emulator.exe"
emulator: argv[01] = "-kernel"
emulator: argv[02] = "C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/kernel-qemu"
emulator: argv[03] = "-netspeed"
emulator: argv[04] = "full"
emulator: argv[05] = "-netdelay"
emulator: argv[06] = "none"
emulator: argv[07] = "-initrd"
emulator: argv[08] = "C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/ramdisk.img"
emulator: argv[09] = "-nand"
emulator: argv[10] = "system,size=0x4e00000,initfile=C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/system.img"
emulator: argv[11] = "-nand"
emulator: argv[12] = "userdata,size=0x4200000,file=C:\Users\ASUS\.android\avd\22.avd/userdata-qemu.img"
emulator: argv[13] = "-nand"
emulator: argv[14] = "cache,size=0x4200000,file=C:\Users\ASUS\.android\avd\22.avd/cache.img"
emulator: argv[15] = "-hda"
emulator: argv[16] = "C:\Users\ASUS\.android\avd\22.avd/sdcard.img"
emulator: argv[17] = "-loadvm"
emulator: argv[18] = "default-boot"
emulator: argv[19] = "-savevm-on-exit"
emulator: argv[20] = "default-boot"
emulator: argv[21] = "-serial"
emulator: argv[22] = "android-kmsg"
emulator: argv[23] = "-serial"
emulator: argv[24] = "android-qemud"
emulator: argv[25] = "-lcd-density"
emulator: argv[26] = "120"
emulator: argv[27] = "-append"
emulator: argv[28] = "qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS1"
emulator: argv[29] = "-m"
emulator: argv[30] = "96"
emulator: argv[31] = "-android-avdname"
emulator: argv[32] = "22"
emulator: argv[33] = "-android-hw"
emulator: argv[34] = "C:\Users\ASUS\AppData\Local\Temp\\AndroidEmulator\TMP4144. tmp"
Concatenated QEMU options:
 emulator.exe -kernel C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/kernel-qemu -netspeed full -netdelay none -initrd C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/ramdisk.img -nand system ,size=0x4e00000,initfile=C:\Users\ASUS\workspace\Android\android-sdk/platforms\android-8\images\/system.img -nand userdata,size=0x4200000,file=C:\Users\ASUS\.android\avd\22.avd/userdata-qemu.img -nand cache,size=0x4200000,file=C:\Users\ASUS\.android\avd\22.avd/cache.img -hda C:\Users\ASUS\.android\avd\22.avd/sdcard.img -loadvm default-boot -savevm-on-exit default-boot -serial android-kmsg -serial
android-qemud -lcd-density 120 -append qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS1 -m 96 -android-avdname 22 -android-hw C:\Users\ASUS\AppData\Local\Temp\\AndroidEmulator\TMP4144.tmp
emulator: registered 'boot-properties' qemud service emulator: mapping 'system' NAND image to C:\Users\ASUS\AppData\Local\Temp\\AndroidEmulator\TMP4902.tmp
emulator: rounding devsize up to a full eraseunit, now 4e1e000

emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '24m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '120'
emulator: Trace file name is not set

emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: C:\Users\ASUS\workspace\Android\android-sdk\tools\ddms.bat
emulator: ping command: C:\windows\system32\cmd.exe /C "C:\Users\ASUS\workspace\Android\android-sdk\tools\ddms.bat" ping emulator 10.0
goldfish_fb_get_pixel_format:167: display surface,pixel format:
  bits/pixel:  16
  bytes/pixel: 2
  depth:       16
  red:         bits=5 mask=0xf800 shift=11 max=0x1f
  green:       bits=6 mask=0x7e0 shift=5 max=0x3f
  blue:        bits=5 mask=0x1f shift=0 max=0x1f
  alpha:       bits=0 mask=0x0 shift=0 max=0x0

我还附加了一个屏幕截图,其中包含模拟器挂起时的外观: 编辑:Wops,我无法附上截图,缺乏声誉,抱歉。  http://i.stack.imgur.com/GH8fu.png

我让它“跑”超过20分钟,我尝试了十几次同样的结果。

任何提示都会大大降低。谢谢!

(1)计算机的完整规格如下: Windows 7的。 1.66Ghz Intel Atom x2(32b) 2 GB ram

1 个答案:

答案 0 :(得分:1)

在尝试在AMD Phenom处理器上运行的ubuntu中启动API 15 x86时,我遇到了类似的问题。 API 19 x86启动正常,API 12手臂也是如此。 API 12 x86不可用。我一直试图启动API 15 x86,它会挂在同一个goldfish_fb_pixel_format:...

我的解决方案是使用API​​ 15 arm(armeabi-v7a)而不是x86。它似乎现在正在运作。

问题可能是我的系统配置。我使用的是较旧的AMD芯片组,SSSE3不可用。它可能是一个糟糕的系统映像下载:我有这么慢的网络连接下载API 15 x86,也许,它以某种方式下载错误?我怀疑......但可能。当我下载API 15手臂时,它非常好用。在任何一种情况下,我现在都满足于测试API 15。

有两个地方可以删除下载的图像。

  1. ~/Android/system-images/android-<version>/default/<platform>
  2. ~/.android/avd/<the_avd_you_created>.avd
  3. 如果您想尝试重新下载,请务必先删除这两个目录,然后重新启动AVD管理器。