Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/220.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android仿真器启动时冻结_Android_Eclipse_Ubuntu_Emulation_Avd - Fatal编程技术网

Android仿真器启动时冻结

Android仿真器启动时冻结,android,eclipse,ubuntu,emulation,avd,Android,Eclipse,Ubuntu,Emulation,Avd,我正在尝试在带有Eclipse3.7的Ubuntu11.10x64上运行Android模拟器。我安装了Eclipse插件SDK,设置了路径变量以包含android SDK路径,安装了32位库,并创建了一个要运行的AVD。但是,当我转到调试或运行时,我的系统将挂起: 等待HOME('android.process.acore')启动 我见过其他人上吊,解决方法通常是“检查日志”(我这里没有消息)、“在AVD中为SD卡添加值”(我已经这样做了)或“等一等——它最终会发生”(我让它运行了一夜,但仍然没

我正在尝试在带有Eclipse3.7的Ubuntu11.10x64上运行Android模拟器。我安装了Eclipse插件SDK,设置了路径变量以包含android SDK路径,安装了32位库,并创建了一个要运行的AVD。但是,当我转到调试或运行时,我的系统将挂起:

等待HOME('android.process.acore')启动

我见过其他人上吊,解决方法通常是“检查日志”(我这里没有消息)、“在AVD中为SD卡添加值”(我已经这样做了)或“等一等——它最终会发生”(我让它运行了一夜,但仍然没有骰子)

还有其他想法吗?非常感谢

编辑:

我还应该提到,我曾尝试重新启动该应用程序,这是另一个普遍建议的解决方案。此外,emulator的视图也会启动,但我从来没有在emulator窗口中看到任何东西(例如,我从来没有看到过N D R O I D),以防这有所帮助

下面是
-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

对我来说,解决方案是当模拟器停留在等待HOME('android.process.acore')启动时。 再次启动你的应用。现在它将开始安装你的应用


或者您可以尝试从AVD管理器启动emulator。

对于我来说,解决方案是当emulator停留在等待HOME('android.process.acore')启动时。 再次启动你的应用。现在它将开始安装你的应用


或者,您可以尝试从AVD管理器启动仿真器。

尝试通过以下命令在命令行上启动仿真器: (在此之前,将cd刻录到android sdk的工具文件夹中)


emulator-avd avdname

尝试通过以下命令在命令行上启动仿真器: (在此之前,将cd刻录到android sdk的工具文件夹中)


emulator-avd avdname

发现问题出在VirtualBox上(对不起,我没想到会提到这一点)。取消选中
3D加速
会导致模拟器正常运行。

结果表明问题出在VirtualBox上(对不起,我没想到会提到这一点)。取消选中
3D加速
导致模拟器正常运行。

我对Ubuntu一无所知。。。但是你是否尝试过先通过AVD管理器启动AVD,然后运行/调试?我对Ubuntu一无所知。。。但是您是否尝试过先通过AVD管理器启动AVD,然后运行/调试?我之前曾尝试过再次启动该应用程序,但忘了提及它。我将尝试从AVD管理器中启动它并返回给您。如果问题仍然存在,请从AVD中删除所有仿真器并为您的应用程序创建一个新的仿真器。当我尝试删除AVD时,我会收到消息“Android虚拟设备[名称]当前正在仿真器中运行,无法删除”。即使重新启动,我也会收到此消息,因此我不确定问题出在哪里。我以前曾尝试再次启动该应用程序,但忘记提及它。我将尝试从AVD管理器中启动它并返回给您。如果问题仍然存在,请从AVD中删除所有仿真器并为您的应用程序创建一个新的仿真器。当我尝试删除AVD时,我会收到消息“Android虚拟设备[名称]当前正在仿真器中运行,无法删除”。即使在重新启动时,我也会收到这条消息,因此我不确定问题出在哪里。emulator-avd avdname-verbose为您提供有关发生了什么的更多信息