2012-08-10 94 views
22

我的AVD模擬器沒有運行後,我改變我的硬盤到其他母板i5 3GHz處理器,無需重新安裝操作系統。模擬器未運行

操作系統:Ubuntu 10.10

我的模擬器沒有運行通過eclipse。當我點擊Run As .. Android應用程序。

然後我嘗試運行通過命令提示符,然後顯示如下錯誤。

[email protected]:~$ emulator -avd JellyBelly 
Failed to create Context 0x3005 
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. 
Segmentation fault 

如何解決此錯誤以運行模擬器?

編輯:使用模擬器-avd JellyBelly -verbose

[email protected]:~$ emulator -avd JellyBelly -verbose 
emulator: found SDK root at /home/padmakumar/android-sdk 
emulator: Android virtual device file at: /home/padmakumar/.android/avd/JellyBelly.ini 
emulator: virtual device content at /home/padmakumar/.android/avd/JellyBelly.avd 
emulator: virtual device config file: /home/padmakumar/.android/avd/JellyBelly.avd/config.ini 
emulator: using core hw config path: /home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini 
emulator: Found AVD target API level: 16 
emulator: found skin 'WXGA800-7in' in directory: /home/padmakumar/android-sdk/platforms/android-16/skins 
emulator: autoconfig: -skin WXGA800-7in 
emulator: autoconfig: -skindir /home/padmakumar/android-sdk/platforms/android-16/skins 
emulator: found skin-specific hardware.ini: /home/padmakumar/android-sdk/platforms/android-16/skins/WXGA800-7in/hardware.ini 
emulator: keyset loaded from: /home/padmakumar/.android/default.keyset 
emulator: trying to load skin file '/home/padmakumar/android-sdk/platforms/android-16/skins/WXGA800-7in/layout' 
emulator: skin network speed: 'full' 
emulator: skin network delay: 'none' 
emulator: autoconfig: -kernel /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//kernel-qemu 
emulator: autoconfig: -ramdisk /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//ramdisk.img 
emulator: Using initial system image: /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
emulator: autoconfig: -data /home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
emulator: autoconfig: -initdata /home/padmakumar/.android/avd/JellyBelly.avd/userdata.img 
emulator: autoconfig: -cache /home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
emulator: autoconfig: -sdcard /home/padmakumar/.android/avd/JellyBelly.avd/sdcard.img 
emulator: Physical RAM size: 1024MB 

Content of hardware configuration file: 
    hw.cpu.arch = arm 
    hw.cpu.model = cortex-a8 
    hw.ramSize = 1024 
    hw.screen = touch 
    hw.mainKeys = no 
    hw.trackBall = yes 
    hw.keyboard = no 
    hw.keyboard.lid = no 
    hw.keyboard.charmap = qwerty2 
    hw.dPad = yes 
    hw.gsmModem = yes 
    hw.gps = yes 
    hw.battery = yes 
    hw.accelerometer = yes 
    hw.audioInput = yes 
    hw.audioOutput = yes 
    hw.sdCard = yes 
    hw.sdCard.path = /home/padmakumar/.android/avd/JellyBelly.avd/sdcard.img 
    disk.cachePartition = yes 
    disk.cachePartition.path = /home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
    disk.cachePartition.size = 66m 
    hw.lcd.width = 800 
    hw.lcd.height = 1280 
    hw.lcd.depth = 16 
    hw.lcd.density = 213 
    hw.lcd.backlight = yes 
    hw.gpu.enabled = no 
    hw.camera.back = emulated 
    hw.camera.front = none 
    vm.heapSize = 48 
    hw.sensors.proximity = yes 
    hw.sensors.magnetic_field = yes 
    hw.sensors.orientation = yes 
    hw.sensors.temperature = yes 
    kernel.path = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//kernel-qemu 
    kernel.parameters = android.checkjni=1 
    disk.ramdisk.path = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//ramdisk.img 
    disk.systemPartition.initPath = /home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
    disk.systemPartition.size = 200m 
    disk.dataPartition.path = /home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
    disk.dataPartition.size = 201m 
    avd.name = JellyBelly 
. 
QEMU options list: 
emulator: argv[00] = "/home/padmakumar/android-sdk/tools/emulator-arm" 
emulator: argv[01] = "-android-hw" 
emulator: argv[02] = "/home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini" 
Concatenated QEMU options: 
/home/padmakumar/android-sdk/tools/emulator-arm -android-hw /home/padmakumar/.android/avd/JellyBelly.avd/hardware-qemu.ini 
emulator: registered 'boot-properties' qemud service 
emulator: nand_add_dev: system,size=0xc800000,initfile=/home/padmakumar/android-sdk/system-images/android-16/armeabi-v7a//system.img 
emulator: mapping 'system' NAND image to /tmp/android-padmakumar/emulator-IM8Usk 
emulator: rounding devsize up to a full eraseunit, now c810000 

emulator: nand_add_dev: userdata,size=0xc900000,file=/home/padmakumar/.android/avd/JellyBelly.avd/userdata-qemu.img 
emulator: rounding devsize up to a full eraseunit, now c918000 

emulator: registered 'boot-properties' qemud service 
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m' 
emulator: Adding boot property: 'qemu.sf.lcd_density' = '213' 
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0' 
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back' 
emulator: nand_add_dev: cache,size=0x4200000,file=/home/padmakumar/.android/avd/JellyBelly.avd/cache.img 
emulator: Initializing hardware OpenGLES emulation support 
Failed to create Context 0x3005 
emulator: Can't start OpenGLES renderer? 
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. 
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=2 
Segmentation fault 

編輯:不管模擬器我創建沒有運行。

+1

運行此命令AVD'模擬器-avd JellyBelly -verbose'和使用輸出更新帖子,還要確保已經安裝了GPU的驅動程序。 – user827992 2012-08-10 13:35:40

回答

3

你可能丟失了一個與GLES庫仿真器的鏈接,確保在

<Android SDK root>/tools/lib 

你有這樣的.so文件

libEGL_translator.so  
libGLES_CM_translator.so  
libGLES_V2_translator.so  
libOpenglRender.so 

則必須將此文件添加到全球一套爲您的操作系統庫,您可以從一個特定的路徑添加庫只做以下幾點:

  • sudo gedit /etc/ld.so.conf.d/androidGL.conf
  • 只寫的路徑,在此文件庫,你的情況<Android SDK root>/tools/lib,只是一個路徑,不指定任何庫,在路徑中的所有庫將被自動收集
  • 保存並關閉gedit
  • 更新全局庫文件集添加新路徑sudo ldconfig

現在重新嘗試運行您的avd。

+0

我做過但沒有效果。我想重新啓動我的電腦嗎? – 2012-08-10 14:26:55

+0

@PadmaKumar好的,試試看。 – user827992 2012-08-10 14:28:05

+0

@PadmaKumar也'模擬器-avd JellyBelly -gpu on'和'模擬器-avd JellyBelly -gpu off' – user827992 2012-08-10 14:31:47

-1

試試這個:

  1. 打開AVD管理
  2. 點擊JellyBelly AVD
  3. 單擊編輯
  4. 變化 '硬件' 部分的價值和保存

嘗試啓動它,讓我們知道它是怎麼回事

+0

所有模擬器都沒有運行,我從所有api級別創建。 – 2012-08-14 09:14:31

+0

與開始現有的avd相比,當您創建新的AVD並嘗試啓動它時發生了什麼? – 2012-08-14 09:23:59

+0

我試過這個,但同樣沒有進展。 – 2012-08-14 09:53:31

1

您將不得不再次設置所有環境變量路徑值。如果您使用安裝程序文件安裝sdk,則可能需要重新安裝它,因爲它與操作系統有一定的依賴關係。

8

實際上,當您將ADT和SDK升級到第20版時會發生這種情況...... 很多人都會遇到這種情況,但解決方法是您必須啓動「emulator-arm」而不是「emulator」...可能是它的作品... 和更多的細節可以參考http://code.google.com/p/android/issues/detail?id=34233此鏈接...

+5

截至今天仍在開發 – 2013-08-23 11:15:27

+0

我能夠通過AVD管理器運行它。但是從命令提示符總是看到一個空白屏幕。使用emulator64-arm而不是仿真器工作。由於 – 2013-11-06 07:12:09

3
Failed to create Context 0x3005 
emulator: Can't start OpenGLES renderer? 

通常當你的模擬器大小超出範圍進行比較,以你的操作系統支持GL驅動這種事情發生。

嘗試根據您的屏幕尺寸縮放您的模擬器並監視dpi。

希望它會有所幫助。

7

我有同樣的問題

編輯您的AVD GUI設置。 硬件部分,選擇新建。 點擊「屬性」下拉菜單 選擇「GPU仿真」,然後點擊「確定」 使用硬件部分的下拉菜單將「Gpu Emulation」更改爲「YES」。

保存並重試

+7

沒有爲我的不同,對不起 – 2012-10-16 08:45:04

+0

我有和後約5屏幕到平板電腦應用程序我總是使用主機GPU:渲染錯誤:無法創建/調整pbuffer,而這種和仿真器停止運行應用正常。把它關掉,模擬器變黑,沒用。通過手機上的主機GPU,它可以正常工作。不同的決議;所以,似乎主機GPU不是解決方案。順便說一句,總是得到「失敗」的消息,因爲UpdateCheck試圖做的東西,它不能在網絡上。 – maxweber 2016-02-08 13:02:57

2

我也有這個問題。我的症狀:

  1. 我可以啓動Android會議
  2. 的Eclipse,然後顯示在上面的錯誤
  3. 我使用Windows Vista,Android SDK中20和Eclipse 4.2.0

實際的問題是相當直截了當(注意我有GPU模擬器=是)。事實證明,Eclipse無法看到Android會話!

http://www.linkedin.com/groups/Problem-in-executing-code-on-86481.S.138513463

因此我發現

Android Emulator starts but Eclipse doesn't recognize it

重啓動ADB服務器和鮑勃在手你的叔叔(也。重新啓動Eclipse)的解決方案!

我希望能幫助別人。

0

如果您使用Windows 8 64位英特爾處理器和NVidia圖形卡,您應該安裝Windows更新。 具體來說:GForce的NViDIA驅動程序更新和HD Graphics的intel公司驅動程序更新。

+1

從他正在使用的操作系統,你可以看到這個問題:「操作系統:Ubuntu的10.10」 – xhochy 2012-10-28 09:04:47

0

沒有什麼可擔心的這個錯誤你是不是根據平臺只是要對它進行適當的意志您展示一個例子

1 -Android 2.2創建AVD,
2 -API 8級, 3 -SDCard 1024

肯定會工作只是使其根據平臺!

+0

乾草我只是試圖在許多方面。實際上我的AVD模擬器沒有運行後,我改變了我的硬盤。 – 2012-11-30 14:15:10

+0

HIII庫馬爾發郵件給我沒什麼可擔心剛剛發給我的整個的解釋...很快就要 – user1576593 2012-12-03 21:16:12

+0

乾草Zohiaib回覆你,其實我的問題修正通過更新我的操作系統。我在上述問題中解釋的每一件事,我都沒有電子郵件發送相同的內容。謝謝你的幫助。 – 2012-12-04 07:51:34

3

更改屏幕(增加)。那奏效了,因爲我在和Windows 8的x64的這個問題我

0

的分辨率。確保你安裝了適合你顯卡的正確驅動程序。我安裝了正確的驅動程序後錯誤消失了。

0

我所做的解決這個問題是:

    從AVD經理
  1. 移除的設備
  2. 創建虛擬設備再次