2012-02-09 54 views
2

我試圖啓動模擬器手臂,但它似乎卡住,從不顯示模擬器gui。這是我的命令Android模擬器將無法在Linux啓動

emulator-arm -avd Android403 -verbose 

這是打印輸出:

emulator: found SDK root at /home/xxxx/development/android-sdk-linux_x86 
emulator: Android virtual device file at: /home/xxxx/.android/avd/Android403.ini 
emulator: virtual device content at /home/xxxx/.android/avd/Android403.avd 
emulator: virtual device config file: /home/xxxx/.android/avd/Android403.avd/config.ini 
emulator: using core hw config path: /home/xxxx/.android/avd/Android403.avd/hardware-qemu.ini 
emulator: Found AVD target API level: 15 
emulator: found skin 'WVGA800' in directory: /home/xxxx/development/android-sdk-linux_x86/platforms/android-15/skins 
emulator: autoconfig: -skin WVGA800 
emulator: autoconfig: -skindir /home/xxxx/development/android-sdk-linux_x86/platforms/android-15/skins 
emulator: keyset loaded from: /home/xxxx/.android/default.keyset 
emulator: trying to load skin file '/home/xxxx/development/android-sdk-linux_x86/platforms/android-15/skins/WVGA800/layout' 
emulator: skin network speed: 'full' 
emulator: skin network delay: 'none' 
emulator: autoconfig: -kernel /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//kernel-qemu 
emulator: autoconfig: -ramdisk /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//ramdisk.img 
emulator: Using initial system image: /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//system.img 
emulator: autoconfig: -data /home/xxxx/.android/avd/Android403.avd/userdata-qemu.img 
emulator: autoconfig: -initdata /home/xxxx/.android/avd/Android403.avd/userdata.img 
emulator: autoconfig: -cache /home/xxxx/.android/avd/Android403.avd/cache.img 
emulator: autoconfig: -sdcard /home/xxxx/.android/avd/Android403.avd/sdcard.img 
emulator: Physical RAM size: 512MB 

Content of hardware configuration file: 
    hw.cpu.arch = arm 
    hw.cpu.model = cortex-a8 
    hw.ramSize = 512 
    hw.touchScreen = yes 
    hw.mainKeys = yes 
    hw.trackBall = yes 
    hw.keyboard = yes 
    hw.keyboard.lid = no 
    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/xxxx/.android/avd/Android403.avd/sdcard.img 
    disk.cachePartition = yes 
    disk.cachePartition.path = /home/xxxx/.android/avd/Android403.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 = 48 
    hw.sensors.proximity = yes 
    hw.sensors.magnetic_field = yes 
    hw.sensors.orientation = yes 
    hw.sensors.temperature = yes 
    kernel.path = /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//kernel-qemu 
    kernel.parameters = android.checkjni=1 
    disk.ramdisk.path = /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//ramdisk.img 
    disk.systemPartition.initPath = /home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//system.img 
    disk.systemPartition.size = 166m 
    disk.dataPartition.path = /home/xxxx/.android/avd/Android403.avd/userdata-qemu.img 
    disk.dataPartition.size = 66m 
    disk.snapStorage.path = 
    avd.name = Android403 
. 
QEMU options list: 
emulator: argv[00] = "development/android-sdk-linux_x86/tools/emulator-arm" 
emulator: argv[01] = "-android-hw" 
emulator: argv[02] = "/home/xxxx/.android/avd/Android403.avd/hardware-qemu.ini" 
Concatenated QEMU options: 
development/android-sdk-linux_x86/tools/emulator-arm -android-hw /home/xxxx/.android/avd/Android403.avd/hardware-qemu.ini 
emulator: registered 'boot-properties' qemud service 
emulator: nand_add_dev: system,size=0xa600000,initfile=/home/xxxx/development/android-sdk-linux_x86/system-images/android-15/armeabi-v7a//system.img 
emulator: mapping 'system' NAND image to /tmp/android-xxxx/emulator-wDcx8t 
emulator: rounding devsize up to a full eraseunit, now a608000 

emulator: nand_add_dev: userdata,size=0x4200000,file=/home/xxxx/.android/avd/Android403.avd/userdata-qemu.img 
emulator: registered 'boot-properties' qemud service 
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m' 
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/xxxx/.android/avd/Android403.avd/cache.img 
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2 

而且它從來沒有得到任何更長的時間。它還發送我的電腦主機名的DNS請求(並獲得答案!)。當我用ctrl-c取消模擬器時,在進程被終止之前gui顯示了一小會兒。

我正在運行64位Linux,但安裝了32位Java。如果我在Eclipse中啓動模擬器(當然),也會發生同樣的事情。

有沒有人看過?我一直在這個谷歌搜索,但似乎人們只有其他模擬器啓動問題。

我認爲這與我的64位系統有關。

+0

嘗試使用命令來運行它只是模擬器-avd Android403 -verbose是結果一樣嗎? – Yury 2012-02-09 23:18:38

+0

嘗試安裝ia32-libs。閱讀它可以工作的地方。 – Alfabravo 2012-02-09 23:19:50

回答

1

今天當我更新我的操作系統(我通常每週至少做一次)時,這很驚人地解決了。 3個包已更新。其中:

EMUL Linux的86 baselibs-20120127
EMUL Linux的86 xlibs-20120127

以前的版本,其中:

EMUL Linux的86 baselibs-20110928
emul-linux-x86-xlibs-20110928

不適用於舊版本。但修正了這些庫的新版本。

1

這可能是模擬器嘗試加載錯誤的快照,嘗試

$ emulator -avd Android403 -verbose -no-snapshot-load 

也注意到,它不是必要的,因爲你的AVD相匹配的人會選擇到指定的架構。

3

添加-noaudio標誌在RHEL6上爲我解決了這個問題。並且我沒有而是需要重新命名libOpenglRender.so,因爲有些人建議。

例如:

emulator -avd avdNameHere -verbose -noaudio